drm: use format %d to print error code
Subsystems (2)
PATCH 1/1 drm: use format %d to print error code
It is more readable by printing "ret = -1" than "ret = 0xffffffff"
Signed-off-by Yuanhan Liu <[email protected]>
--- drivers/gpu/drm/drm_drv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/drm_drv.c +1 -1
@@ -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; }
Signature · 1 line
1.7.7.6