Output ioctl() debugging in hex. stable-1.4
authorFlorian Pose <fp@igh-essen.com>
Mon, 29 Dec 2008 15:22:00 +0000
branchstable-1.4
changeset 1687 5c40af734120
parent 1686 e206f4485f60
child 1688 12046addaec5
Output ioctl() debugging in hex.
master/cdev.c
--- a/master/cdev.c	Mon Dec 29 15:19:16 2008 +0000
+++ b/master/cdev.c	Mon Dec 29 15:22:00 2008 +0000
@@ -1232,7 +1232,7 @@
     ec_master_t *master = cdev->master;
 
     if (master->debug_level)
-        EC_DBG("ioctl(filp = %x, cmd = %u (%u), arg = %x)\n",
+        EC_DBG("ioctl(filp = 0x%x, cmd = 0x%x (0x%x), arg = 0x%x)\n",
                 (u32) filp, (u32) cmd, (u32) _IOC_NR(cmd), (u32) arg);
 
     switch (cmd) {