summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/dump_machdep.c2
-rw-r--r--sys/amd64/amd64/machdep.c2
-rw-r--r--sys/i386/i386/dump_machdep.c2
-rw-r--r--sys/i386/i386/machdep.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/dump_machdep.c b/sys/amd64/amd64/dump_machdep.c
index 69982dae07ed..caa5883d10df 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 ec6e05c2624d..f1bc522954af 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 69982dae07ed..caa5883d10df 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 ec6e05c2624d..f1bc522954af 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,