Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 2010 05:24:41 +0000 (UTC)
From:      Neel Natu <neel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210910 - head/sys/mips/sibyte
Message-ID:  <201008060524.o765Of0K017296@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008060524.o765Of0K017296>