[PATCH -mmotm] misc: fix eeprom printk format

From: Randy Dunlap
Date: Sun Jul 10 2011 - 14:44:23 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

drivers/misc/eeprom/eeprom_93xx46.c:95: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Cc: Anatolij Gustschin <agust@xxxxxxx>
applies-to: misc-eeprom-add-driver-for-microwire-93xx46-eeproms.patch
---
drivers/misc/eeprom/eeprom_93xx46.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- mmotm-2011-0708-1250.orig/drivers/misc/eeprom/eeprom_93xx46.c
+++ mmotm-2011-0708-1250/drivers/misc/eeprom/eeprom_93xx46.c
@@ -91,7 +91,7 @@ eeprom_93xx46_bin_read(struct file *filp
/* have to wait at least Tcsl ns */
ndelay(250);
if (ret) {
- dev_err(&edev->spi->dev, "read %d bytes at %d: err. %d\n",
+ dev_err(&edev->spi->dev, "read %zu bytes at %d: err. %d\n",
count, (int)off, ret);
}

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/