Skip to contentSkip to conversation

drm: use format %d to print error code

PATCH New Yuanhan Liu 1 participant 1 message Jun 16, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: use format %d to print error code

It is more readable by printing "ret = -1" than "ret = 0xffffffff"

---
 drivers/gpu/drm/drm_drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/drm_drv.c +1 -1
index 8a9d079..946bd91 100644
@@ -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