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 8a9d0792e4ec3cd4af688faf6751fa6d6617a35e..946bd91c57ec162a1fab8b3d122c17bb2ca2dd8c 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;
 }