public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] elks: fix printf format specifiers
@ 2004-06-03 21:55 claudio
  2004-06-04  3:50 ` ** Applied ** " Miguel Bolanos
  0 siblings, 1 reply; 2+ messages in thread
From: claudio @ 2004-06-03 21:55 UTC (permalink / raw)
  To: linux-8086

[-- Attachment #1: Type: TEXT/PLAIN, Size: 299 bytes --]


The attached patch fixes format specifiers to correctly display
segment sizes as unsigned values (instead of negative sizes for
BSS and data), and to display debug messages correctly.

 arch/i86/mm/init.c |    5 +++--
 fs/exec.c          |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1233 bytes --]

Index: arch/i86/mm/init.c
===================================================================
RCS file: /cvsroot/elks/elks/arch/i86/mm/init.c,v
retrieving revision 1.8
diff -u -r1.8 init.c
--- arch/i86/mm/init.c	22 Jun 2002 09:28:20 -0000	1.8
+++ arch/i86/mm/init.c	3 Jun 2004 21:43:00 -0000
@@ -69,9 +69,10 @@
 
 #endif
 
-    printk(".\nELKS kernel (%d text + %d data + %d bss)\n"
+    printk(".\nELKS kernel (%u text + %u data + %u bss)\n"
 	   "Kernel text at %x:0000, data at %x:0000 \n",
-	   (int) _endtext, (int) _enddata, (int) _endbss - (int) _enddata,
+	   (unsigned)_endtext, (unsigned)_enddata,
+	   (unsigned)_endbss - (unsigned)_enddata,
 	   get_cs(), get_ds());
 
     /*
Index: fs/exec.c
===================================================================
RCS file: /cvsroot/elks/elks/fs/exec.c,v
retrieving revision 1.33
diff -u -r1.33 exec.c
--- fs/exec.c	2 Jan 2003 22:45:43 -0000	1.33
+++ fs/exec.c	3 Jun 2004 21:43:02 -0000
@@ -204,7 +204,7 @@
 	goto close_readexec;
     }
 
-    debug1("EXEC: Allocating %d bytes for data segment\n", len);
+    debug1("EXEC: Allocating %ld bytes for data segment\n", len);
 
     dseg = mm_alloc((segext_t) (len >> 4));
     if (!dseg) {

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

end of thread, other threads:[~2004-06-04  3:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03 21:55 [PATCH] elks: fix printf format specifiers claudio
2004-06-04  3:50 ` ** Applied ** " Miguel Bolanos

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