summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2008-04-02 21:32:04 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2008-04-02 21:32:04 +0000
commit9e441a939fc93477bb0747045c74f5557b30936f (patch)
tree839bfaaddf41b1355b3d454688dba1f03e1e97a5 /sys
parentbfbea72eaaf27d2b8001b1e0586ab293570a40b6 (diff)
fix bad printf if metadata clearing failed
from Rainer Giedat ok marco@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 57bc7becef4..f63acdc2575 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.104 2008/02/15 05:29:25 ckuethe Exp $ */
+/* $OpenBSD: softraid.c,v 1.105 2008/04/02 21:32:03 martin Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -771,7 +771,7 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user)
bzero(sd->sd_meta, SR_META_SIZE * 512);
if (sr_clear_metadata(sd)) {
- printf("%s: failed to clear metadata\n");
+ printf("%s: failed to clear metadata\n", DEVNAME(sc));
goto unwind;
}
}