module_signing: fix printk format warning
PATCH 1/1 module_signing: fix printk format warning
From: Randy Dunlap <[email protected]>
kernel/module_signing.c:195:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t'
Signed-off-by Randy Dunlap <[email protected]>
Cc David Howells <[email protected]>
--- kernel/module_signing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/module_signing.c +1 -1
@@ -192,7 +192,7 @@ int mod_verify_sig(const void *mod, unsisize_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 ;
Quoted 6 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
kernel/module_signing.c:195:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t'Signed-off-by Randy Dunlap <[email protected]>Cc David Howells <[email protected]>
Hmmm... My compiler doesn't show that, which is a bit surprising.
Acked-by David Howells <[email protected]>