From: Dominik Brodowski <linux@dominikbrodowski•net>
To: Randy Dunlap <randy.dunlap@oracle•com>
Cc: Stephen Rothwell <sfr@canb•auug.org.au>,
linux-pcmcia@lists•infradead.org,
Harald Welte <laforge@gnumonks•org>,
linux-next@vger•kernel.org, LKML <linux-kernel@vger•kernel.org>,
gregkh@suse•de, akpm <akpm@linux-foundation•org>
Subject: Re: [PATCH -next] pcmcia: fix printk formats
Date: Wed, 11 Nov 2009 19:27:46 +0100 [thread overview]
Message-ID: <20091111182746.GA10094@isilmar.linta.de> (raw)
In-Reply-To: <20091111093107.9032f4bb.randy.dunlap@oracle.com>
Applied to the PCMCIA tree, thanks.
On Wed, Nov 11, 2009 at 09:31:07AM -0800, Randy Dunlap wrote:
> 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);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger•kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2009-11-11 18:27 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 ` [PATCH -next] pcmcia: fix printk formats Randy Dunlap
2009-11-11 18:27 ` Dominik Brodowski [this message]
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=20091111182746.GA10094@isilmar.linta.de \
--to=linux@dominikbrodowski$(echo .)net \
--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=randy.dunlap@oracle$(echo .)com \
--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