diff options
author | Yuanhan Liu <yuanhan.liu@linux.intel.com> | 2012-06-16 16:25:24 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-21 10:34:42 +0200 |
commit | 4ef7fe7c66d4653930f67566a1df1c8f2d6daa6b (patch) | |
tree | e5a0d6ae49bb00be69a3d2d2cd8f19b72112a544 /drivers/gpu/drm/drm_drv.c | |
parent | drm: Add missing static storage class specifier (diff) | |
download | linux-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.c | 2 |
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; } |