summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-11-09 16:19:14 +0000
committerdes <des@FreeBSD.org>2002-11-09 16:19:14 +0000
commit4e2288959e58c32c44523d601c8afb0d640bcabe (patch)
treec0db91834881bdd067933aeaa388a0c616ff0e18 /sys
parent533541c47bc98b118c55a2c646188e129abde3b8 (diff)
downloadFreeBSD-src-4e2288959e58c32c44523d601c8afb0d640bcabe.zip
FreeBSD-src-4e2288959e58c32c44523d601c8afb0d640bcabe.tar.gz
Print real / avail memory in megabytes rather than kilobytes.
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/machdep.c7
-rw-r--r--sys/amd64/amd64/machdep.c8
-rw-r--r--sys/i386/i386/machdep.c8
-rw-r--r--sys/ia64/ia64/machdep.c7
-rw-r--r--sys/pc98/i386/machdep.c8
-rw-r--r--sys/pc98/pc98/machdep.c8
-rw-r--r--sys/powerpc/aim/machdep.c8
-rw-r--r--sys/powerpc/powerpc/machdep.c8
8 files changed, 32 insertions, 30 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index b7362d8..7a4a001 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -239,7 +239,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %ld (%ldK bytes)\n", alpha_ptob(Maxmem), alpha_ptob(Maxmem) / 1024);
+ printf("real memory = %ld (%ld MB)\n", alpha_ptob(Maxmem),
+ alpha_ptob(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@@ -258,8 +259,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index fb6c1b2..4e09e32 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -199,8 +199,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
- ptoa(Maxmem) / 1024);
+ printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
+ ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@@ -220,8 +220,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index fb6c1b2..4e09e32 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -199,8 +199,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
- ptoa(Maxmem) / 1024);
+ printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
+ ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@@ -220,8 +220,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index d1d7c28..df7dc4a 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -169,7 +169,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %ld (%ldK bytes)\n", ia64_ptob(Maxmem), ia64_ptob(Maxmem) / 1024);
+ printf("real memory = %ld (%ld MB)\n", ia64_ptob(Maxmem),
+ ia64_ptob(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@@ -188,8 +189,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
if (fpswa_interface == NULL)
printf("Warning: no FPSWA package supplied\n");
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 183cf65..14b0439 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -219,8 +219,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
- ptoa(Maxmem) / 1024);
+ printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
+ ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@@ -240,8 +240,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 183cf65..14b0439 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -219,8 +219,8 @@ cpu_startup(dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %u (%uK bytes)\n", ptoa(Maxmem),
- ptoa(Maxmem) / 1024);
+ printf("real memory = %u (%u MB)\n", ptoa(Maxmem),
+ ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
*/
@@ -240,8 +240,8 @@ cpu_startup(dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %u (%uK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %u (%u MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index 1df450d..a14d966 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -186,8 +186,8 @@ cpu_startup(void *dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %ld (%ldK bytes)\n", ptoa(Maxmem),
- ptoa(Maxmem) / 1024);
+ printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
+ ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@@ -207,8 +207,8 @@ cpu_startup(void *dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.
diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c
index 1df450d..a14d966 100644
--- a/sys/powerpc/powerpc/machdep.c
+++ b/sys/powerpc/powerpc/machdep.c
@@ -186,8 +186,8 @@ cpu_startup(void *dummy)
#ifdef PERFMON
perfmon_init();
#endif
- printf("real memory = %ld (%ldK bytes)\n", ptoa(Maxmem),
- ptoa(Maxmem) / 1024);
+ printf("real memory = %ld (%ld MB)\n", ptoa(Maxmem),
+ ptoa(Maxmem) / 1048576);
/*
* Display any holes after the first chunk of extended memory.
@@ -207,8 +207,8 @@ cpu_startup(void *dummy)
vm_ksubmap_init(&kmi);
- printf("avail memory = %ld (%ldK bytes)\n", ptoa(cnt.v_free_count),
- ptoa(cnt.v_free_count) / 1024);
+ printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
+ ptoa(cnt.v_free_count) / 1048576);
/*
* Set up buffers, so they can be used to read disk labels.
OpenPOWER on IntegriCloud