summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_drv.c
diff options
context:
space:
mode:
authorYuanhan Liu <yuanhan.liu@linux.intel.com>2012-06-16 16:25:24 +0200
committerDave Airlie <airlied@redhat.com>2012-06-21 10:34:42 +0200
commit4ef7fe7c66d4653930f67566a1df1c8f2d6daa6b (patch)
treee5a0d6ae49bb00be69a3d2d2cd8f19b72112a544 /drivers/gpu/drm/drm_drv.c
parentdrm: Add missing static storage class specifier (diff)
downloadlinux-4ef7fe7c66d4653930f67566a1df1c8f2d6daa6b.tar.xz
linux-4ef7fe7c66d4653930f67566a1df1c8f2d6daa6b.zip
drm: use format %d to print error code
It is more readable by printing "ret = -1" than "ret = 0xffffffff" Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r--drivers/gpu/drm/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 8a9d0792e4ec..946bd91c57ec 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -486,7 +486,7 @@ long drm_ioctl(struct file *filp,
kfree(kdata);
atomic_dec(&dev->ioctl_count);
if (retcode)
- DRM_DEBUG("ret = %x\n", retcode);
+ DRM_DEBUG("ret = %d\n", retcode);
return retcode;
}