Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun3/dev Fix printf message on attachment.



details:   https://anonhg.NetBSD.org/src/rev/f187cb1471fc
branches:  trunk
changeset: 487620:f187cb1471fc
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jun 10 04:15:59 2000 +0000

description:
Fix printf message on attachment.

diffstat:

 sys/arch/sun3/dev/md_root.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 91cd3c168200 -r f187cb1471fc sys/arch/sun3/dev/md_root.c
--- a/sys/arch/sun3/dev/md_root.c       Sat Jun 10 04:05:49 2000 +0000
+++ b/sys/arch/sun3/dev/md_root.c       Sat Jun 10 04:15:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md_root.c,v 1.11 1999/05/08 18:46:17 gwr Exp $ */
+/*     $NetBSD: md_root.c,v 1.12 2000/06/10 04:15:59 tsutsui Exp $     */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -54,13 +54,13 @@
 
 /*
  * This array will be patched to contain a file-system image.
- * See the program:  src/distrib/sun3/common/rdsetroot.c
+ * See the program mdsetimage(8) for details.
  */
-int md_root_size = ROOTBYTES;
+u_int32_t md_root_size = ROOTBYTES;
 char md_root_image[ROOTBYTES] = "|This is the root ramdisk!\n";
 
 /*
- * This is called during autoconfig.
+ * This is called during pseudo-device attachment.
  */
 void
 md_attach_hook(unit, md)
@@ -72,7 +72,8 @@
                md->md_addr = (caddr_t) md_root_image;
                md->md_size = (size_t)  md_root_size;
                md->md_type = MD_KMEM_FIXED;
-               printf(" fixed, %d blocks", MINIROOTSIZE);
+               printf("md%d: internal %dK image area\n", unit,
+                   ROOTBYTES / 1024);
        }
 }
 



Home | Main Index | Thread Index | Old Index