diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2013-03-28 14:05:40 +0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2013-03-28 08:34:30 -0700 |
commit | 1eb2860b4bd0306dddc5b2f2dc7403aa65c5e476 (patch) | |
tree | 114d797fac236f56ecccb6755164bc42be5767ca | |
parent | 99105e765c31b598746b849e66e7a9106dcefa24 (diff) | |
download | libdrm-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>
-rw-r--r-- | xf86drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |