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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 4 Oct 2012 09:08:06 +1000
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	Randy Dunlap <rdunlap@...otime.net>
Cc:	linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
	David Howells <dhowells@...hat.com>,
	Herbert Xu <herbert@...dor.apana.org.au>,
	linux-crypto@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>,
	Rusty Russell <rusty@...tcorp.com.au>
Subject: Re: [PATCH -next] asymmetric keys: fix printk format warning

[Lets also cc Rusty who committed the patch ...]

On Wed, 03 Oct 2012 16:04:46 -0700 Randy Dunlap <rdunlap@...otime.net> wrote:
>
> From: Randy Dunlap <rdunlap@...otime.net>
> 
> Fix printk format warning in x509_cert_parser.c:
> 
> crypto/asymmetric_keys/x509_cert_parser.c: In function 'x509_note_OID':
> crypto/asymmetric_keys/x509_cert_parser.c:113:3: warning: format '%zu' expects type 'size_t', but argument 2 has type 'long unsigned int'
> 
> Builds cleanly on i386 and x86_64.
> 
> Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
> Cc: David Howells <dhowells@...hat.com>
> Cc: Herbert Xu <herbert@...dor.apana.org.au>
> Cc: linux-crypto@...r.kernel.org
> ---
>  crypto/asymmetric_keys/x509_cert_parser.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- linux-next-20121003.orig/crypto/asymmetric_keys/x509_cert_parser.c
> +++ linux-next-20121003/crypto/asymmetric_keys/x509_cert_parser.c
> @@ -110,7 +110,7 @@ int x509_note_OID(void *context, size_t
>  	if (ctx->last_oid == OID__NR) {
>  		char buffer[50];
>  		sprint_oid(value, vlen, buffer, sizeof(buffer));
> -		pr_debug("Unknown OID: [%zu] %s\n",
> +		pr_debug("Unknown OID: [%lu] %s\n",
>  			 (unsigned long)value - ctx->data, buffer);
>  	}
>  	return 0;
> 

-- 
Cheers,
Stephen Rothwell                    sfr@...b.auug.org.au

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ