drm: use format %d to print error code
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 16 Jun 2012 14:25:24 +0000 (22:25 +0800)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Jun 2012 08:34:42 +0000 (09:34 +0100)
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>
drivers/gpu/drm/drm_drv.c

index 8a9d079..946bd91 100644 (file)
@@ -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;
 }