From 43a1f64e7222e9b5a8d7cb2b887002a8b539452e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 3 Apr 2015 09:25:02 +0100 Subject: igt/gem_cpu_reloc: Pretty print execbuf failures References: https://bugs.freedesktop.org/show_bug.cgi?id=85672 Signed-off-by: Chris Wilson --- lib/ioctl_wrappers.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index ff78ef13..dec45f11 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -429,12 +429,10 @@ uint32_t gem_create(int fd, int size) */ void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf) { - int ret; + int result; - ret = drmIoctl(fd, - DRM_IOCTL_I915_GEM_EXECBUFFER2, - execbuf); - igt_assert(ret == 0); + result = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf); + igt_assert(result == 0); errno = 0; } -- cgit v1.2.3