Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Restore missing message for RB_ASKNAME.
details: https://anonhg.NetBSD.org/src/rev/b1af95711984
branches: trunk
changeset: 946189:b1af95711984
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Nov 21 08:10:27 2020 +0000
description:
Restore missing message for RB_ASKNAME.
Cleanups.
diffstat:
sys/kern/kern_subr.c | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 56393662c469 -r b1af95711984 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Sat Nov 21 08:09:21 2020 +0000
+++ b/sys/kern/kern_subr.c Sat Nov 21 08:10:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.228 2020/01/01 22:57:17 thorpej Exp $ */
+/* $NetBSD: kern_subr.c,v 1.229 2020/11/21 08:10:27 mlelstv Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.228 2020/01/01 22:57:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.229 2020/11/21 08:10:27 mlelstv Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -445,8 +445,20 @@
}
}
+ switch (device_class(rootdv)) {
+ case DV_IFNET:
+ case DV_DISK:
+ aprint_normal("root on %s", device_xname(rootdv));
+ if (DEV_USES_PARTITIONS(rootdv))
+ aprint_normal("%c", (int)DISKPART(rootdev) + 'a');
+ break;
+ default:
+ printf("can't determine root device\n");
+ return;
+ }
+
root_device = rootdv;
- setroot_dump(root_device, dumpdv);
+ setroot_dump(rootdv, dumpdv);
}
/*
Home |
Main Index |
Thread Index |
Old Index