diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-26 13:42:40 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-26 13:42:40 +0000 |
commit | f4ba7b7401c3302e9559f968deb24cba454ba26c (patch) | |
tree | 15f162ba5b73d095f4301b41c4292ae1e411722a | |
parent | 6392cdabe94e2c8b9086ce671561eff6c6c54e87 (diff) |
Display correct value in error message.
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 6ae04dce36d..aa99e15fcc8 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.373 2016/04/26 13:38:24 krw Exp $ */ +/* $OpenBSD: softraid.c,v 1.374 2016/04/26 13:42:39 krw Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -3212,7 +3212,7 @@ sr_rebuild_init(struct sr_discipline *sd, dev_t dev, int hotspare) devname, (long long)((size - csize) << DEV_BSHIFT)); if (label.d_secsize > sd->sd_meta->ssdi.ssd_secsize) { sr_error(sc, "%s sector size too large, <= %u bytes " - "required", devname, label.d_secsize); + "required", devname, sd->sd_meta->ssdi.ssd_secsize); goto done; } |