]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i2c: Cleanup i2c-dev ioctl debug message
authorJean Delvare <khali@linux-fr.org>
Fri, 7 Oct 2005 21:06:27 +0000 (23:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 21:02:08 +0000 (14:02 -0700)
Cleanup the ioctl debug message in i2c-dev. In particular, the minor
number is redundant now that the minor number and the adapter number
are kept in sync.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-dev.c

index aa7a4fadef64d6d8106bd1a9d80d5227e8d9026a..89f54a5e8484941ed5c780289f39c815953bbac5 100644 (file)
@@ -177,8 +177,8 @@ static int i2cdev_ioctl(struct inode *inode, struct file *file,
        int i,datasize,res;
        unsigned long funcs;
 
-       dev_dbg(&client->adapter->dev, "i2c-%d ioctl, cmd: 0x%x, arg: %lx.\n",
-               iminor(inode),cmd, arg);
+       dev_dbg(&client->adapter->dev, "ioctl, cmd=0x%02x, arg=0x%02lx\n",
+               cmd, arg);
 
        switch ( cmd ) {
        case I2C_SLAVE: