]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
asymmetric keys: fix printk format warning
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 3 Oct 2012 23:04:46 +0000 (16:04 -0700)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 8 Oct 2012 04:04:02 +0000 (14:34 +1030)
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@xenotime.net>
Cc: David Howells <dhowells@redhat.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
crypto/asymmetric_keys/x509_cert_parser.c

index db07e8c9c883294e8b0f0f916a86fbd1a8059e89..7fabc4c01993bd92e3fc159ba05ae92b1732f231 100644 (file)
@@ -110,7 +110,7 @@ int x509_note_OID(void *context, size_t hdrlen,
        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;