diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-17 12:08:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-17 12:08:38 +0000 |
commit | 9d5c0dd9762c77bca0b805bdd6a81efed3d0ebbd (patch) | |
tree | 2850cd2bbc11639f6a29b7c03cfc6f0c5c5e49f5 /sys | |
parent | d12524c2768f0f39b641f1c1051fd4a96476524c (diff) |
Print the rpb device type and unit values if the root device can't be found
by the kernel.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/vax/vax/autoconf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/vax/vax/autoconf.c b/sys/arch/vax/vax/autoconf.c index 482d38cb808..010e306769c 100644 --- a/sys/arch/vax/vax/autoconf.c +++ b/sys/arch/vax/vax/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.36 2013/03/21 21:55:09 deraadt Exp $ */ +/* $OpenBSD: autoconf.c,v 1.37 2014/05/17 12:08:37 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.45 1999/10/23 14:56:05 ragge Exp $ */ /* @@ -88,8 +88,11 @@ cpu_configure(void) void diskconf(void) { - printf("boot device: %s\n", - bootdv ? bootdv->dv_xname : "<unknown>"); + if (bootdv == NULL) + printf("boot device: unknown (rpb %d/%d)\n", + rpb.devtyp, rpb.unit); + else + printf("boot device: %s\n", bootdv->dv_xname); setroot(bootdv, booted_partition, RB_USERREQ); dumpconf(); |