summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-11-13 14:52:31 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-11-13 14:52:31 +0000
commit7b06c08306e12566af73d8871cd5c6af770cc8b4 (patch)
tree70147975688a627059f0a5d923007582da9d2fc5 /sys/arch/i386/stand
parentbd9f235aefb2e6a4fd862a0fad42ab7920c0be45 (diff)
If a softraid chunk is offline we are not necessarily going to have the
disk/partition name - in this case print the chunk number instead.
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r--sys/arch/i386/stand/installboot/installboot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c
index 781da08251a..cd55ee78dff 100644
--- a/sys/arch/i386/stand/installboot/installboot.c
+++ b/sys/arch/i386/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.66 2011/07/19 01:08:35 krw Exp $ */
+/* $OpenBSD: installboot.c,v 1.67 2011/11/13 14:52:30 jsing Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -786,13 +786,13 @@ sr_installpbr(int devfd, int vol, int disk)
/* Check disk status. */
if (bd.bd_status != BIOC_SDONLINE && bd.bd_status != BIOC_SDREBUILD) {
- fprintf(stderr, "softraid disk %s not online - skipping...\n",
- bd.bd_vendor);
+ fprintf(stderr, "softraid chunk %u not online - skipping...\n",
+ disk);
return;
}
if (strlen(bd.bd_vendor) < 1)
- errx(1, "invalid disk name %s", bd.bd_vendor);
+ errx(1, "invalid disk name");
part = bd.bd_vendor[strlen(bd.bd_vendor) - 1];
if (part < 'a' || part >= 'a' + MAXPARTITIONS)
errx(1, "invalid partition %c\n", part);