aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kurtz2014-11-14 23:51:18 -0600
committersrinivas pulukuru2015-01-30 16:04:01 -0600
commit5986e020c15065ce5a820237c292846433b05c93 (patch)
treecce77b67132aa92019c3124a16d74029e7cb851e
parent19087e509db2ff1487220d2a2a7142a86ef1586a (diff)
downloadlibdrm-5986e020c15065ce5a820237c292846433b05c93.tar.gz
libdrm-5986e020c15065ce5a820237c292846433b05c93.tar.xz
libdrm-5986e020c15065ce5a820237c292846433b05c93.zip
drm: Fix error message in drmWaitVBlank
If clock_gettime did fail, it would return -1 and set errno. What we really want to strerror() is the errno. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
-rw-r--r--xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 2a74c807..4791a053 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -1946,7 +1946,7 @@ int drmWaitVBlank(int fd, drmVBlankPtr vbl)
1946 1946
1947 ret = clock_gettime(CLOCK_MONOTONIC, &timeout); 1947 ret = clock_gettime(CLOCK_MONOTONIC, &timeout);
1948 if (ret < 0) { 1948 if (ret < 0) {
1949 fprintf(stderr, "clock_gettime failed: %s\n", strerror(ret)); 1949 fprintf(stderr, "clock_gettime failed: %s\n", strerror(errno));
1950 goto out; 1950 goto out;
1951 } 1951 }
1952 timeout.tv_sec++; 1952 timeout.tv_sec++;