From 692821870b8f1dc47652de3dde4a74b3b93e82cb Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 30 Aug 2002 06:13:39 +0000 Subject: [PATCH] Unbreak kernel build by printing Maxmem using %ld instead of old (now changed) %u --- sys/amd64/amd64/dump_machdep.c | 2 +- sys/amd64/amd64/machdep.c | 2 +- sys/i386/i386/dump_machdep.c | 2 +- sys/i386/i386/machdep.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/dump_machdep.c b/sys/amd64/amd64/dump_machdep.c index 69982dae07e..caa5883d10d 100644 --- a/sys/amd64/amd64/dump_machdep.c +++ b/sys/amd64/amd64/dump_machdep.c @@ -59,7 +59,7 @@ dumpsys(struct dumperinfo *di) int i, mb; int c; - printf("Dumping %u MB\n", Maxmem / (1024*1024 / PAGE_SIZE)); + printf("Dumping %ld MB\n", Maxmem / (1024*1024 / PAGE_SIZE)); /* Fill in the kernel dump header */ strcpy(kdh.magic, KERNELDUMPMAGIC); diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index ec6e05c2624..f1bc522954a 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -1472,7 +1472,7 @@ physmap_done: if (atop(physmap[physmap_idx + 1]) != Maxmem && (boothowto & RB_VERBOSE)) - printf("Physical memory use set to %uK\n", Maxmem * 4); + printf("Physical memory use set to %ldK\n", Maxmem * 4); /* * If Maxmem has been increased beyond what the system has detected, diff --git a/sys/i386/i386/dump_machdep.c b/sys/i386/i386/dump_machdep.c index 69982dae07e..caa5883d10d 100644 --- a/sys/i386/i386/dump_machdep.c +++ b/sys/i386/i386/dump_machdep.c @@ -59,7 +59,7 @@ dumpsys(struct dumperinfo *di) int i, mb; int c; - printf("Dumping %u MB\n", Maxmem / (1024*1024 / PAGE_SIZE)); + printf("Dumping %ld MB\n", Maxmem / (1024*1024 / PAGE_SIZE)); /* Fill in the kernel dump header */ strcpy(kdh.magic, KERNELDUMPMAGIC); diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index ec6e05c2624..f1bc522954a 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -1472,7 +1472,7 @@ physmap_done: if (atop(physmap[physmap_idx + 1]) != Maxmem && (boothowto & RB_VERBOSE)) - printf("Physical memory use set to %uK\n", Maxmem * 4); + printf("Physical memory use set to %ldK\n", Maxmem * 4); /* * If Maxmem has been increased beyond what the system has detected,