module_signing: fix printk format warning
authorRandy Dunlap <rdunlap@xenotime.net>
Sun, 21 Oct 2012 01:59:31 +0000 (18:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 22 Oct 2012 05:56:34 +0000 (08:56 +0300)
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 <rdunlap@xenotime.net>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/module_signing.c

index d492a23df99c8a4fa99527b89c1223941229cb41..ea1b1df5dbb0077a167caaf8e013b8baf765e902 100644 (file)
@@ -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;