svn commit: r210910 - head/sys/mips/sibyte

Neel Natu neel at FreeBSD.org
Fri Aug 6 05:24:41 UTC 2010


Author: neel
Date: Fri Aug  6 05:24:41 2010
New Revision: 210910
URL: http://svn.freebsd.org/changeset/base/210910

Log:
  uint64_t is 'unsigned long' in n64 build, so compiler is unhappy if the
  format specifier in printf is "%llu".
  
  Use "%ju" instead.

Modified:
  head/sys/mips/sibyte/sb_machdep.c

Modified: head/sys/mips/sibyte/sb_machdep.c
==============================================================================
--- head/sys/mips/sibyte/sb_machdep.c	Fri Aug  6 05:20:21 2010	(r210909)
+++ head/sys/mips/sibyte/sb_machdep.c	Fri Aug  6 05:24:41 2010	(r210910)
@@ -189,11 +189,11 @@ mips_init(void)
 			("CFE DRAM region is not available?"));
 
 		if (bootverbose)
-			printf("cfe_enummem: 0x%016jx/%llu.\n", addr, len);
+			printf("cfe_enummem: 0x%016jx/%ju.\n", addr, len);
 
 		if (maxmem != 0) {
 			if (addr >= maxmem) {
-				printf("Ignoring %llu bytes of memory at 0x%jx "
+				printf("Ignoring %ju bytes of memory at 0x%jx "
 				       "that is above maxmem %dMB\n",
 				       len, addr,
 				       (int)(maxmem / (1024 * 1024)));
@@ -201,7 +201,7 @@ mips_init(void)
 			}
 
 			if (addr + len > maxmem) {
-				printf("Ignoring %llu bytes of memory "
+				printf("Ignoring %ju bytes of memory "
 				       "that is above maxmem %dMB\n",
 				       (addr + len) - maxmem,
 				       (int)(maxmem / (1024 * 1024)));


More information about the svn-src-all mailing list