Skip to content

Commit

Permalink
module_signing: fix printk format warning
Browse files Browse the repository at this point in the history
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: Randy Dunlap <[email protected]>
Cc: David Howells <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rddunlap authored and torvalds committed Oct 22, 2012
1 parent 4fe7e86 commit 0390c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/module_signing.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int mod_verify_sig(const void *mod, unsigned long *_modlen)
size_t modlen = *_modlen, sig_len;
int ret;

pr_devel("==>%s(,%lu)\n", __func__, modlen);
pr_devel("==>%s(,%zu)\n", __func__, modlen);

if (modlen <= sizeof(ms))
return -EBADMSG;
Expand Down

0 comments on commit 0390c88

Please sign in to comment.