[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110513103750.3fc12a1b.randy.dunlap@oracle.com>
Date: Fri, 13 May 2011 10:37:50 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org,
Jean-François Dagenais
<dagenaisj@...atest.com>, Evgeniy Polyakov <johnpol@....mipt.ru>,
Szabolcs Gyurko <szabolcs.gyurko@....hu>,
Matt Reimer <mreimer@...p.net>
Subject: [PATCH -mm] w1: fix w1_ds2408.c printk formats
From: Randy Dunlap <randy.dunlap@...cle.com>
Fix printk format warnings (on i386):
(in w1-add-1-wire-w1-ds2408-8-channel-addressable-switch-support.patch)
drivers/w1/slaves/w1_ds2408.c:79: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'size_t'
drivers/w1/slaves/w1_ds2408.c:92: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'size_t'
drivers/w1/slaves/w1_ds2408.c:106: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'size_t'
drivers/w1/slaves/w1_ds2408.c:120: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
Cc: Jean-François Dagenais <dagenaisj@...atest.com>
Cc: Evgeniy Polyakov <johnpol@....mipt.ru>
Cc: Szabolcs Gyurko <szabolcs.gyurko@....hu>
Cc: Matt Reimer <mreimer@...p.net>
---
drivers/w1/slaves/w1_ds2408.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- mmotm-2011-0512-1552.orig/drivers/w1/slaves/w1_ds2408.c
+++ mmotm-2011-0512-1552/drivers/w1/slaves/w1_ds2408.c
@@ -77,7 +77,7 @@ static ssize_t w1_f29_read_state(
char *buf, loff_t off, size_t count)
{
dev_dbg(&kobj_to_w1_slave(kobj)->dev,
- "Reading %s kobj: %p, off: %0#10x, count: %lu, buff addr: %p",
+ "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p",
bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
if (count != 1 || off != 0)
return -EFAULT;
@@ -90,7 +90,7 @@ static ssize_t w1_f29_read_output(
char *buf, loff_t off, size_t count)
{
dev_dbg(&kobj_to_w1_slave(kobj)->dev,
- "Reading %s kobj: %p, off: %0#10x, count: %lu, buff addr: %p",
+ "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p",
bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
if (count != 1 || off != 0)
return -EFAULT;
@@ -104,7 +104,7 @@ static ssize_t w1_f29_read_activity(
char *buf, loff_t off, size_t count)
{
dev_dbg(&kobj_to_w1_slave(kobj)->dev,
- "Reading %s kobj: %p, off: %0#10x, count: %lu, buff addr: %p",
+ "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p",
bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
if (count != 1 || off != 0)
return -EFAULT;
@@ -118,7 +118,7 @@ static ssize_t w1_f29_read_cond_search_m
char *buf, loff_t off, size_t count)
{
dev_dbg(&kobj_to_w1_slave(kobj)->dev,
- "Reading %s kobj: %p, off: %0#10x, count: %lu, buff addr: %p",
+ "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p",
bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
if (count != 1 || off != 0)
return -EFAULT;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists