diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2015-10-31 02:08:39 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2015-10-31 02:08:39 +0000 |
commit | 00ba484bdfabd18f730c7a9dee6eae767e72d24d (patch) | |
tree | 4e30dd4a41dc041c16e29f7512cbad348e092cec /sys/powerpc/powerpc | |
parent | 19ffb62cab0f170b2075da0815304de7c1d90ef3 (diff) | |
download | FreeBSD-src-00ba484bdfabd18f730c7a9dee6eae767e72d24d.zip FreeBSD-src-00ba484bdfabd18f730c7a9dee6eae767e72d24d.tar.gz |
Print unsigned memory sizes, to handle >2GB RAM on 32-bit powerpc.
Sponsored by: Alex Perez/Intertial Computing
Diffstat (limited to 'sys/powerpc/powerpc')
-rw-r--r-- | sys/powerpc/powerpc/machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index 2bc9496..781a3f6 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -176,12 +176,12 @@ cpu_startup(void *dummy) #ifdef PERFMON perfmon_init(); #endif - printf("real memory = %ld (%ld MB)\n", ptoa(physmem), + printf("real memory = %lu (%lu MB)\n", ptoa(physmem), ptoa(physmem) / 1048576); realmem = physmem; if (bootverbose) - printf("available KVA = %zd (%zd MB)\n", + printf("available KVA = %zu (%zu MB)\n", virtual_end - virtual_avail, (virtual_end - virtual_avail) / 1048576); @@ -199,7 +199,7 @@ cpu_startup(void *dummy) #ifdef __powerpc64__ printf("0x%016lx - 0x%016lx, %ld bytes (%ld pages)\n", #else - printf("0x%08x - 0x%08x, %d bytes (%ld pages)\n", + printf("0x%08x - 0x%08x, %u bytes (%lu pages)\n", #endif phys_avail[indx], phys_avail[indx + 1] - 1, size1, size1 / PAGE_SIZE); @@ -208,7 +208,7 @@ cpu_startup(void *dummy) vm_ksubmap_init(&kmi); - printf("avail memory = %ld (%ld MB)\n", ptoa(vm_cnt.v_free_count), + printf("avail memory = %lu (%lu MB)\n", ptoa(vm_cnt.v_free_count), ptoa(vm_cnt.v_free_count) / 1048576); /* |