Commit 0390c883 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

module_signing: fix printk format warning

Fix the warning:

  kernel/module_signing.c:195:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t'

by using the proper 'z' modifier for printing a size_t.
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4fe7e866
...@@ -192,7 +192,7 @@ int mod_verify_sig(const void *mod, unsigned long *_modlen) ...@@ -192,7 +192,7 @@ int mod_verify_sig(const void *mod, unsigned long *_modlen)
size_t modlen = *_modlen, sig_len; size_t modlen = *_modlen, sig_len;
int ret; int ret;
pr_devel("==>%s(,%lu)\n", __func__, modlen); pr_devel("==>%s(,%zu)\n", __func__, modlen);
if (modlen <= sizeof(ms)) if (modlen <= sizeof(ms))
return -EBADMSG; return -EBADMSG;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment