[PATCH] drm: Fix error message in drmWaitVBlank

2013-03-28 Thread Daniel Kurtz
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 --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index 2a74c80..4791a05 100644 --- a/xf86drm.c +++

[PATCH] drm: Fix error message in drmWaitVBlank

2013-03-28 Thread Jesse Barnes
On Thu, 28 Mar 2013 14:05:40 +0800 Daniel Kurtz wrote: > 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 > --- > xf86drm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[PATCH] drm: Fix error message in drmWaitVBlank

2013-03-28 Thread Daniel Kurtz
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 djku...@chromium.org --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index 2a74c80..4791a05 100644 ---

Re: [PATCH] drm: Fix error message in drmWaitVBlank

2013-03-28 Thread Jesse Barnes
On Thu, 28 Mar 2013 14:05:40 +0800 Daniel Kurtz djku...@chromium.org wrote: 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 djku...@chromium.org --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+),