diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2013-03-31 15:44:53 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2013-03-31 15:44:53 +0000 |
commit | d0293e4a1744503723c3447d53f04cc90a312bef (patch) | |
tree | 53bc6f058ac279783291962f7c790d1a21c3c62e /sys/dev/softraid_crypto.c | |
parent | 0a467f3593dc1573fec160f4db4748bcb440140b (diff) |
Use consistent error handling when validating the number of chunks
provided.
Diffstat (limited to 'sys/dev/softraid_crypto.c')
-rw-r--r-- | sys/dev/softraid_crypto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/softraid_crypto.c b/sys/dev/softraid_crypto.c index 1cf46fc4bf0..952d2852309 100644 --- a/sys/dev/softraid_crypto.c +++ b/sys/dev/softraid_crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_crypto.c,v 1.90 2013/03/31 11:37:40 jsing Exp $ */ +/* $OpenBSD: softraid_crypto.c,v 1.91 2013/03/31 15:44:52 jsing Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Hans-Joerg Hoexer <hshoexer@openbsd.org> @@ -140,7 +140,8 @@ sr_crypto_create(struct sr_discipline *sd, struct bioc_createraid *bc, int rv = EINVAL; if (no_chunk != 1) { - sr_error(sd->sd_sc, "CRYPTO requires exactly one chunk"); + sr_error(sd->sd_sc, "%s requires exactly one chunk", + sd->sd_name); goto done; } |