Skip to content

Commit cf75446

Browse files
rddunlaprustyrussell
authored andcommitted
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 <[email protected]> Cc: David Howells <[email protected]> Cc: Herbert Xu <[email protected]> Cc: [email protected] Signed-off-by: Rusty Russell <[email protected]>
1 parent a5752d1 commit cf75446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/asymmetric_keys/x509_cert_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int x509_note_OID(void *context, size_t hdrlen,
110110
if (ctx->last_oid == OID__NR) {
111111
char buffer[50];
112112
sprint_oid(value, vlen, buffer, sizeof(buffer));
113-
pr_debug("Unknown OID: [%zu] %s\n",
113+
pr_debug("Unknown OID: [%lu] %s\n",
114114
(unsigned long)value - ctx->data, buffer);
115115
}
116116
return 0;

0 commit comments

Comments
 (0)