lkml.org 
[lkml]   [2011]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mmotm] misc: fix eeprom printk format
From: Randy Dunlap <randy.dunlap@oracle.com>

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@oracle.com>
Cc: Anatolij Gustschin <agust@denx.de>
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);
}


\
 
 \ /
  Last update: 2011-07-10 20:47    [W:0.069 / U:2.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site