public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org,
	"Jean-François Dagenais" <dagenaisj@sonatest.com>,
	"Evgeniy Polyakov" <johnpol@2ka.mipt.ru>,
	"Szabolcs Gyurko" <szabolcs.gyurko@tlt.hu>,
	"Matt Reimer" <mreimer@vpop.net>
Subject: [PATCH -mm] w1: fix w1_ds2408.c printk formats
Date: Fri, 13 May 2011 10:37:50 -0700	[thread overview]
Message-ID: <20110513103750.3fc12a1b.randy.dunlap@oracle.com> (raw)
In-Reply-To: <201105122329.p4CNTanN009889@imap1.linux-foundation.org>

From: Randy Dunlap <randy.dunlap@oracle.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@oracle.com>
Cc: Jean-François Dagenais <dagenaisj@sonatest.com>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Cc: Matt Reimer <mreimer@vpop.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;

  reply	other threads:[~2011-05-13 17:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 22:53 mmotm 2011-05-12-15-52 uploaded akpm
2011-05-13 17:37 ` Randy Dunlap [this message]
2011-05-24 12:24 ` David Fries
2011-05-24 20:13   ` Matt Fleming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110513103750.3fc12a1b.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=dagenaisj@sonatest.com \
    --cc=johnpol@2ka.mipt.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mreimer@vpop.net \
    --cc=szabolcs.gyurko@tlt.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox