diff options
author | 2013-03-31 15:44:52 +0000 | |
---|---|---|
committer | 2013-03-31 15:44:52 +0000 | |
commit | 984c6b2d72cbbe6f17cf41a4864fa3f61cf87258 (patch) | |
tree | 31bdc54f23df977d30a429fc530bf0230356c0c3 /sys/dev/softraid_concat.c | |
parent | ooops, forgot to lower the define after my very last test: it's 10% not 99% (diff) | |
download | wireguard-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.c | 5 |
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; } |