lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 11 Nov 2009 19:27:46 +0100
From:	Dominik Brodowski <linux@...inikbrodowski.net>
To:	Randy Dunlap <randy.dunlap@...cle.com>
Cc:	Stephen Rothwell <sfr@...b.auug.org.au>,
	linux-pcmcia@...ts.infradead.org,
	Harald Welte <laforge@...monks.org>,
	linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
	gregkh@...e.de, akpm <akpm@...ux-foundation.org>
Subject: Re: [PATCH -next] pcmcia: fix printk formats

Applied to the PCMCIA tree, thanks.

On Wed, Nov 11, 2009 at 09:31:07AM -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@...cle.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@...cle.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@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ