aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2012-10-03 19:04:46 -0400
committerRusty Russell <rusty@rustcorp.com.au>2012-10-10 05:36:38 -0400
commitcf75446e69305307225e12f2eb2e856db268195e (patch)
tree892a4d6823b4884468e2e9dea406b3a4f4740f3a
parenta5752d11b3853fcdb48b303573dd39b09d05e500 (diff)
asymmetric keys: fix printk format warning
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>
-rw-r--r--crypto/asymmetric_keys/x509_cert_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/x509_cert_parser.c b/crypto/asymmetric_keys/x509_cert_parser.c
index db07e8c9c883..7fabc4c01993 100644
--- a/crypto/asymmetric_keys/x509_cert_parser.c
+++ b/crypto/asymmetric_keys/x509_cert_parser.c
@@ -110,7 +110,7 @@ int x509_note_OID(void *context, size_t hdrlen,
110 if (ctx->last_oid == OID__NR) { 110 if (ctx->last_oid == OID__NR) {
111 char buffer[50]; 111 char buffer[50];
112 sprint_oid(value, vlen, buffer, sizeof(buffer)); 112 sprint_oid(value, vlen, buffer, sizeof(buffer));
113 pr_debug("Unknown OID: [%zu] %s\n", 113 pr_debug("Unknown OID: [%lu] %s\n",
114 (unsigned long)value - ctx->data, buffer); 114 (unsigned long)value - ctx->data, buffer);
115 } 115 }
116 return 0; 116 return 0;