diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-08-10 22:56:16 +0200 |
---|---|---|
committer | Jean Delvare <khali@mahadeva.delvare> | 2008-08-10 22:56:16 +0200 |
commit | 2ce5b34fd519275d788338ae692e4b71df6661d4 (patch) | |
tree | 5fe721f6c89eb2dcc344123cf38ec547f59852ec /drivers/i2c/i2c-dev.c | |
parent | i2c: Check for address business before creating clients (diff) | |
download | linux-2ce5b34fd519275d788338ae692e4b71df6661d4.tar.xz linux-2ce5b34fd519275d788338ae692e4b71df6661d4.zip |
i2c: correct some size_t printk formats
Fix various printk format strings where %zd was passed a size_t;
those should be %zu instead. (Courtesy of a version of GCC which
warns when these details are wrong.)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index 9d55c6383b23..af4491fa7e34 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c @@ -147,7 +147,7 @@ static ssize_t i2cdev_read (struct file *file, char __user *buf, size_t count, if (tmp==NULL) return -ENOMEM; - pr_debug("i2c-dev: i2c-%d reading %zd bytes.\n", + pr_debug("i2c-dev: i2c-%d reading %zu bytes.\n", iminor(file->f_path.dentry->d_inode), count); ret = i2c_master_recv(client,tmp,count); @@ -175,7 +175,7 @@ static ssize_t i2cdev_write (struct file *file, const char __user *buf, size_t c return -EFAULT; } - pr_debug("i2c-dev: i2c-%d writing %zd bytes.\n", + pr_debug("i2c-dev: i2c-%d writing %zu bytes.\n", iminor(file->f_path.dentry->d_inode), count); ret = i2c_master_send(client,tmp,count); |