lkml.org 
[lkml]   [2012]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] rtc: fix rtc-ds1307 printk format warning
From: Randy Dunlap <rdunlap@xenotime.net>

Fix printk format warning:

drivers/rtc/rtc-ds1307.c:915:3: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: rtc-linux@googlegroups.com
---
drivers/rtc/rtc-ds1307.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20120227.orig/drivers/rtc/rtc-ds1307.c
+++ linux-next-20120227/drivers/rtc/rtc-ds1307.c
@@ -912,7 +912,7 @@ read_rtc:
goto exit_nvram;
}
set_bit(HAS_NVRAM, &ds1307->flags);
- dev_info(&client->dev, "%d bytes nvram\n", ds1307->nvram->size);
+ dev_info(&client->dev, "%zu bytes nvram\n", ds1307->nvram->size);
}

return 0;

\
 
 \ /
  Last update: 2012-02-27 19:27    [W:0.086 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site