All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] module_signing: fix printk format warning
@ 2012-10-21  1:59 Randy Dunlap
  2012-10-22  9:43 ` David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2012-10-21  1:59 UTC (permalink / raw)
  To: LKML, Linus Torvalds; +Cc: David Howells

From: Randy Dunlap <rdunlap@xenotime.net>

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 <rdunlap@xenotime.net>
Cc: David Howells <dhowells@redhat.com>
---
 kernel/module_signing.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-37-rc2.orig/kernel/module_signing.c
+++ lnx-37-rc2/kernel/module_signing.c
@@ -192,7 +192,7 @@ int mod_verify_sig(const void *mod, unsi
 	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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] module_signing: fix printk format warning
  2012-10-21  1:59 [PATCH] module_signing: fix printk format warning Randy Dunlap
@ 2012-10-22  9:43 ` David Howells
  0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2012-10-22  9:43 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: dhowells, LKML, Linus Torvalds

Randy Dunlap <rdunlap@xenotime.net> wrote:

> From: Randy Dunlap <rdunlap@xenotime.net>
> 
> 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 <rdunlap@xenotime.net>
> Cc: David Howells <dhowells@redhat.com>

Hmmm...  My compiler doesn't show that, which is a bit surprising.

Acked-by: David Howells <dhowells@redhat.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-22  9:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-21  1:59 [PATCH] module_signing: fix printk format warning Randy Dunlap
2012-10-22  9:43 ` David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.