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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux