mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Use correct format when printing long unsigned int in arch/x86/kernel/setup.c
@ 2008-05-05 22:41 Jesper Juhl
  2008-05-05 22:58 ` Randy.Dunlap
  2008-05-06 12:38 ` Ingo Molnar
  0 siblings, 2 replies; 3+ messages in thread
From: Jesper Juhl @ 2008-05-05 22:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, gcosta, jesper.juhl

From: Jesper Juhl <jesper.juhl@gmail.com>


Use correct format when printing long unsigned int in arch/x86/kernel/setup.c

This patch gets rid of this compiler warning:
  arch/x86/kernel/setup.c: In function 'setup_per_cpu_areas':
  arch/x86/kernel/setup.c:99: warning: format '%zd' expects type 'signed size_t', but argument 2 has type 'long unsigned int'


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 setup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index cc6f5eb..c0c68c1 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -95,7 +95,7 @@ void __init setup_per_cpu_areas(void)
 
 	/* Copy section for each CPU (we discard the original) */
 	size = PERCPU_ENOUGH_ROOM;
-	printk(KERN_INFO "PERCPU: Allocating %zd bytes of per cpu data\n",
+	printk(KERN_INFO "PERCPU: Allocating %lu bytes of per cpu data\n",
 			  size);
 
 	for_each_possible_cpu(i) {



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

end of thread, other threads:[~2008-05-06 12:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-05 22:41 [PATCH] Use correct format when printing long unsigned int in arch/x86/kernel/setup.c Jesper Juhl
2008-05-05 22:58 ` Randy.Dunlap
2008-05-06 12:38 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®