summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_concat.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2013-03-31 15:44:52 +0000
committerjsing <jsing@openbsd.org>2013-03-31 15:44:52 +0000
commit984c6b2d72cbbe6f17cf41a4864fa3f61cf87258 (patch)
tree31bdc54f23df977d30a429fc530bf0230356c0c3 /sys/dev/softraid_concat.c
parentooops, forgot to lower the define after my very last test: it's 10% not 99% (diff)
downloadwireguard-openbsd-984c6b2d72cbbe6f17cf41a4864fa3f61cf87258.tar.xz
wireguard-openbsd-984c6b2d72cbbe6f17cf41a4864fa3f61cf87258.zip
Use consistent error handling when validating the number of chunks
provided.
Diffstat (limited to 'sys/dev/softraid_concat.c')
-rw-r--r--sys/dev/softraid_concat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/softraid_concat.c b/sys/dev/softraid_concat.c
index 71fd7cd18f9..a6f197b3132 100644
--- a/sys/dev/softraid_concat.c
+++ b/sys/dev/softraid_concat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_concat.c,v 1.14 2013/03/31 13:31:44 jsing Exp $ */
+/* $OpenBSD: softraid_concat.c,v 1.15 2013/03/31 15:44:52 jsing Exp $ */
/*
* Copyright (c) 2008 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
@@ -63,7 +63,8 @@ sr_concat_create(struct sr_discipline *sd, struct bioc_createraid *bc,
int i;
if (no_chunk < 2) {
- sr_error(sd->sd_sc, "CONCAT requires two or more chunks");
+ sr_error(sd->sd_sc, "%s requires two or more chunks",
+ sd->sd_name);
return EINVAL;
}