summaryrefslogtreecommitdiff
path: root/tests/ipptest/fimctest.c
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2017-04-18 14:17:15 +0900
committerHoegeun Kwon <hoegeun.kwon@samsung.com>2017-04-18 14:20:56 +0900
commit2380ed1c9a31bde6015219091cbb5463a44ba215 (patch)
tree861a511973a8f80f45d5610fdeccc155cf36f5ce /tests/ipptest/fimctest.c
parent1010a2b8163d7d495a343c0acd52cc1ede837ae6 (diff)
downloadlibdrm-2380ed1c9a31bde6015219091cbb5463a44ba215.tar.gz
libdrm-2380ed1c9a31bde6015219091cbb5463a44ba215.tar.bz2
libdrm-2380ed1c9a31bde6015219091cbb5463a44ba215.zip
To remove warning of static analysis tool, this removes strerror(). Change-Id: I132cf0271ac9a1641c1c88611aca5c3f311240a7 Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Diffstat (limited to 'tests/ipptest/fimctest.c')
-rw-r--r--tests/ipptest/fimctest.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/tests/ipptest/fimctest.c b/tests/ipptest/fimctest.c
index 196f3c4b..09c8b676 100644
--- a/tests/ipptest/fimctest.c
+++ b/tests/ipptest/fimctest.c
@@ -123,8 +123,8 @@ static void dump_encoders(void)
encoder = drmModeGetEncoder(fd, resources->encoders[i]);
if (!encoder) {
- fprintf(stderr, "could not get encoder %i: %s\n",
- resources->encoders[i], strerror(errno));
+ fprintf(stderr, "could not get encoder %i: %d\n",
+ resources->encoders[i], errno);
continue;
}
printf("%d\t%d\t%s\t0x%08x\t0x%08x\n",
@@ -179,8 +179,8 @@ static void dump_connectors(void)
connector = drmModeGetConnector(fd, resources->connectors[i]);
if (!connector) {
- fprintf(stderr, "could not get connector %i: %s\n",
- resources->connectors[i], strerror(errno));
+ fprintf(stderr, "could not get connector %i: %d\n",
+ resources->connectors[i], errno);
continue;
}
@@ -225,8 +225,8 @@ static void dump_crtcs(void)
crtc = drmModeGetCrtc(fd, resources->crtcs[i]);
if (!crtc) {
- fprintf(stderr, "could not get crtc %i: %s\n",
- resources->crtcs[i], strerror(errno));
+ fprintf(stderr, "could not get crtc %i: %d\n",
+ resources->crtcs[i], errno);
continue;
}
printf("%d\t%d\t(%d,%d)\t(%dx%d)\n",
@@ -252,8 +252,8 @@ static void dump_framebuffers(void)
fb = drmModeGetFB(fd, resources->fbs[i]);
if (!fb) {
- fprintf(stderr, "could not get fb %i: %s\n",
- resources->fbs[i], strerror(errno));
+ fprintf(stderr, "could not get fb %i: %d\n",
+ resources->fbs[i], errno);
continue;
}
printf("%u\t(%ux%u)\t%u\n",
@@ -288,8 +288,8 @@ void connector_find_mode(struct connector *c)
connector = drmModeGetConnector(fd, resources->connectors[i]);
if (!connector) {
- fprintf(stderr, "could not get connector %i: %s\n",
- resources->connectors[i], strerror(errno));
+ fprintf(stderr, "could not get connector %i: %d\n",
+ resources->connectors[i], errno);
continue;
}
@@ -337,8 +337,8 @@ void connector_find_mode(struct connector *c)
encoder = drmModeGetEncoder(fd, resources->encoders[i]);
if (!encoder) {
- fprintf(stderr, "could not get encoder %i: %s\n",
- resources->encoders[i], strerror(errno));
+ fprintf(stderr, "could not get encoder %i: %d\n",
+ resources->encoders[i], errno);
continue;
}
@@ -456,8 +456,7 @@ int main(int argc, char **argv)
dev.resources = get_resources(&dev);
if (!dev.resources) {
- fprintf(stderr, "get_resources failed: %s\n",
- strerror(errno));
+ fprintf(stderr, "get_resources failed: %d\n", errno);
drmClose(dev.fd);
return 1;
}
@@ -483,8 +482,8 @@ int main(int argc, char **argv)
ret = kms_create(dev.fd, &dev.kms);
if (ret) {
fprintf(stderr,
- "failed to create kms driver: %s\n",
- strerror(-ret));
+ "failed to create kms driver: %d\n",
+ ret);
break;
}