summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_raid0.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_raid0.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_raid0.c')
-rw-r--r--sys/dev/softraid_raid0.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/softraid_raid0.c b/sys/dev/softraid_raid0.c
index fbe6529f750..98cd65c9677 100644
--- a/sys/dev/softraid_raid0.c
+++ b/sys/dev/softraid_raid0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid_raid0.c,v 1.38 2013/03/31 11:12:06 jsing Exp $ */
+/* $OpenBSD: softraid_raid0.c,v 1.39 2013/03/31 15:44:52 jsing Exp $ */
/*
* Copyright (c) 2008 Marco Peereboom <marco@peereboom.us>
*
@@ -73,7 +73,8 @@ sr_raid0_create(struct sr_discipline *sd, struct bioc_createraid *bc,
int no_chunk, int64_t coerced_size)
{
if (no_chunk < 2) {
- sr_error(sd->sd_sc, "RAID 0 requires two or more chunks");
+ sr_error(sd->sd_sc, "%s requires two or more chunks",
+ sd->sd_name);
return EINVAL;
}