public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle•com>
To: Stephen Rothwell <sfr@canb•auug.org.au>,
	linux-pcmcia@lists•infradead.org,
	Harald Welte <laforge@gnumonks•org>
Cc: akpm <akpm@linux-foundation•org>,
	linux-next@vger•kernel.org, LKML <linux-kernel@vger•kernel.org>,
	gregkh@suse•de
Subject: [PATCH -next] pcmcia: fix printk formats
Date: Wed, 11 Nov 2009 09:31:07 -0800	[thread overview]
Message-ID: <20091111093107.9032f4bb.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20091111203159.a2a6eeeb.sfr@canb.auug.org.au>

From: Randy Dunlap <randy.dunlap@oracle•com>

Fix printk format warnings on sizeof() [size_t] arguments.

drivers/char/pcmcia/cm4040_cs.c:267: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'size_t'
drivers/char/pcmcia/cm4040_cs.c:272: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'size_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle•com>
---
 drivers/char/pcmcia/cm4040_cs.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20091110.orig/drivers/char/pcmcia/cm4040_cs.c
+++ linux-next-20091110/drivers/char/pcmcia/cm4040_cs.c
@@ -264,12 +264,12 @@ static ssize_t cm4040_read(struct file *
 
 	bytes_to_read = 5 + le32_to_cpu(*(__le32 *)&dev->r_buf[1]);
 
-	DEBUGP(6, dev, "BytesToRead=%lu\n", bytes_to_read);
+	DEBUGP(6, dev, "BytesToRead=%zu\n", bytes_to_read);
 
 	min_bytes_to_read = min(count, bytes_to_read + 5);
 	min_bytes_to_read = min_t(size_t, min_bytes_to_read, READ_WRITE_BUFFER_SIZE);
 
-	DEBUGP(6, dev, "Min=%lu\n", min_bytes_to_read);
+	DEBUGP(6, dev, "Min=%zu\n", min_bytes_to_read);
 
 	for (i = 0; i < (min_bytes_to_read-5); i++) {
 		rc = wait_for_bulk_in_ready(dev);

  reply	other threads:[~2009-11-11 17:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11  9:31 linux-next: Tree for November 11 Stephen Rothwell
2009-11-11 17:31 ` Randy Dunlap [this message]
2009-11-11 18:27   ` [PATCH -next] pcmcia: fix printk formats Dominik Brodowski
2009-11-11 17:31 ` [PATCH -next] staging/rtl8192u: depends on USB Randy Dunlap
2009-11-11 17:31 ` [PATCH -next] staging/vt665*: depends on WLAN Randy Dunlap
2009-11-11 17:31 ` [PATCH -next] staging/vt665*: fix printk formats Randy Dunlap

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=20091111093107.9032f4bb.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle$(echo .)com \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=gregkh@suse$(echo .)de \
    --cc=laforge@gnumonks$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=linux-pcmcia@lists$(echo .)infradead.org \
    --cc=sfr@canb$(echo .)auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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