summaryrefslogtreecommitdiff
path: root/xf86drm.c
diff options
context:
space:
mode:
authorDaniel Kurtz <djkurtz@chromium.org>2013-03-28 14:05:40 +0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2013-03-28 08:34:30 -0700
commit1eb2860b4bd0306dddc5b2f2dc7403aa65c5e476 (patch)
tree114d797fac236f56ecccb6755164bc42be5767ca /xf86drm.c
parent99105e765c31b598746b849e66e7a9106dcefa24 (diff)
downloadlibdrm-1eb2860b4bd0306dddc5b2f2dc7403aa65c5e476.tar.gz
libdrm-1eb2860b4bd0306dddc5b2f2dc7403aa65c5e476.tar.bz2
libdrm-1eb2860b4bd0306dddc5b2f2dc7403aa65c5e476.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>
Diffstat (limited to 'xf86drm.c')
-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)
ret = clock_gettime(CLOCK_MONOTONIC, &timeout);
if (ret < 0) {
- fprintf(stderr, "clock_gettime failed: %s\n", strerror(ret));
+ fprintf(stderr, "clock_gettime failed: %s\n", strerror(errno));
goto out;
}
timeout.tv_sec++;