diff options
author | mwilck@arcor.de <mwilck@arcor.de> | 2013-07-25 20:59:10 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-30 10:57:13 +1000 |
commit | 84e32e197777ee7a228e19999064a466736b75c5 (patch) | |
tree | 54da14aad3344808a995baa6a19a051692f7ff81 /super-ddf.c | |
parent | 4b1679dd39c08df09b6c8aaa25e61311ab804707 (diff) |
DDF: find_vdcr: fix minor bug in debug message
This code could find disk -1. Fixed.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c index ae6cdf4d..ac30e4e5 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1731,7 +1731,7 @@ static struct vd_config *find_vdcr(struct ddf_super *ddf, unsigned int inst, struct vcl *v; for (v = ddf->conflist; v; v = v->next) { - unsigned int nsec, ibvd; + unsigned int nsec, ibvd = 0; struct vd_config *conf; if (inst != v->vcnum) continue; @@ -1763,7 +1763,7 @@ static struct vd_config *find_vdcr(struct ddf_super *ddf, unsigned int inst, n - nsec*conf->sec_elmnt_count, n_bvd)) goto bad; dprintf("%s: found disk %u as member %u in bvd %d of array %u\n" - , __func__, n, *n_bvd, ibvd-1, inst); + , __func__, n, *n_bvd, ibvd, inst); *vcl = v; return conf; } |