Output decoded ioctl command number.
authorFlorian Pose <fp@igh-essen.com>
Tue, 10 Jun 2008 08:54:54 +0000
changeset 981 5a2bd04c555c
parent 980 c07dd38243ba
child 982 861eb2810f56
Output decoded ioctl command number.
master/cdev.c
--- a/master/cdev.c	Tue Jun 10 08:48:50 2008 +0000
+++ b/master/cdev.c	Tue Jun 10 08:54:54 2008 +0000
@@ -137,8 +137,8 @@
     long retval = 0;
 
     if (master->debug_level)
-        EC_DBG("ioctl(filp = %x, cmd = %u, arg = %x)\n",
-                (u32) filp, (u32) cmd, (u32) arg);
+        EC_DBG("ioctl(filp = %x, cmd = %u (%u), arg = %x)\n",
+                (u32) filp, (u32) cmd, (u32) _IOC_NR(cmd), (u32) arg);
 
     // FIXME lock