linux-mips
[Top] [All Lists]

[PATCH]: c-r4k.c, printing longs as longs

To: linux mips mailing list <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH]: c-r4k.c, printing longs as longs
From: Juan Quintela <quintela@mandrakesoft.com>
Date: 18 Dec 2002 02:43:04 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi
        printing a long as a int is a bad idea :(

Later, Juan.

Index: arch/mips/mm/c-r4k.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/mm/c-r4k.c,v
retrieving revision 1.3.2.13
diff -u -r1.3.2.13 c-r4k.c
--- arch/mips/mm/c-r4k.c        11 Dec 2002 14:23:12 -0000      1.3.2.13
+++ arch/mips/mm/c-r4k.c        18 Dec 2002 00:49:18 -0000
@@ -1107,7 +1107,7 @@
        }
        ic_lsize = 16 << ((config >> 5) & 1);
 
-       printk("Primary instruction cache %dkb, linesize %ld bytes.\n",
+       printk("Primary instruction cache %ldkb, linesize %ld bytes.\n",
               icache_size >> 10, ic_lsize);
 }
 
@@ -1129,7 +1129,7 @@
        }
        dc_lsize = 16 << ((config >> 4) & 1);
 
-       printk("Primary data cache %dkb, linesize %ld bytes.\n",
+       printk("Primary data cache %ldkb, linesize %ld bytes.\n",
               dcache_size >> 10, dc_lsize);
 }
 


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH]: c-r4k.c, printing longs as longs, Juan Quintela <=