diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-20 03:11:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-10-03 22:58:16 +0100 |
commit | 61bddf8504461fad3e45fbf0d32956a76e0dd343 (patch) | |
tree | cf30805405c930a7e246abe9855ea757056b4f57 /libdrm/intel | |
parent | 11f0e450dd7d711eb69aa9c27ed4aa72d913d697 (diff) |
intel: report errno
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'libdrm/intel')
-rw-r--r-- | libdrm/intel/intel_bufmgr_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdrm/intel/intel_bufmgr_gem.c b/libdrm/intel/intel_bufmgr_gem.c index ce3cbabd..235ec619 100644 --- a/libdrm/intel/intel_bufmgr_gem.c +++ b/libdrm/intel/intel_bufmgr_gem.c @@ -1496,7 +1496,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size) gp.value = &bufmgr_gem->pci_device; ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp); if (ret) { - fprintf(stderr, "get chip id failed: %d\n", ret); + fprintf(stderr, "get chip id failed: %d [%d]\n", ret, errno); fprintf(stderr, "param: %d, val: %d\n", gp.param, *gp.value); } @@ -1505,7 +1505,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size) gp.value = &bufmgr_gem->available_fences; ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp); if (ret) { - fprintf(stderr, "get fences failed: %d\n", ret); + fprintf(stderr, "get fences failed: %d [%d]\n", ret, errno); fprintf(stderr, "param: %d, val: %d\n", gp.param, *gp.value); bufmgr_gem->available_fences = 0; } |