Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/sgimips Tidy up total/avail memory message ...



details:   https://anonhg.NetBSD.org/src/rev/3fceb8dbb9da
branches:  trunk
changeset: 565377:3fceb8dbb9da
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Apr 05 16:01:43 2004 +0000

description:
Tidy up total/avail memory message as well as other ports.
As per discussion on port-sgimips.

diffstat:

 sys/arch/sgimips/sgimips/machdep.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 223aae70fb3c -r 3fceb8dbb9da sys/arch/sgimips/sgimips/machdep.c
--- a/sys/arch/sgimips/sgimips/machdep.c        Mon Apr 05 14:32:56 2004 +0000
+++ b/sys/arch/sgimips/sgimips/machdep.c        Mon Apr 05 16:01:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.81 2004/03/25 15:06:37 pooka Exp $       */
+/*     $NetBSD: machdep.c,v 1.82 2004/04/05 16:01:43 tsutsui Exp $     */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.81 2004/03/25 15:06:37 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.82 2004/04/05 16:01:43 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -598,7 +598,9 @@
        printf(version);
 
        format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
-       printf("%s memory", pbuf);
+       printf("total memory = %s\n", pbuf);
+       format_bytes(pbuf, sizeof(pbuf), ctob(arcsmem));
+       printf("(%s reserved for ARCS)\n", pbuf);
 
        minaddr = 0;
        /*
@@ -618,11 +620,8 @@
         * are allocated via the pool allocator, and we use KSEG to
         * map those pages.)
         */
-
        format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
-       printf(", %s free", pbuf);
-       format_bytes(pbuf, sizeof(pbuf), ctob(arcsmem));
-       printf(", %s for ARCS\n", pbuf);
+       printf("avail memory = %s\n", pbuf);
 }
 
 int    waittime = -1;



Home | Main Index | Thread Index | Old Index