diff options
author | mwilck@arcor.de <mwilck@arcor.de> | 2013-07-03 22:28:04 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-08 08:50:43 +0200 |
commit | b27336a28ef08c354b168ccf8ed967eccb213302 (patch) | |
tree | 630ca187641fb19c3a0d89aa795af8d4146371ad | |
parent | DDF: guid_str: convenience function to print GUID for debugging (diff) | |
download | mdadm-b27336a28ef08c354b168ccf8ed967eccb213302.tar.xz mdadm-b27336a28ef08c354b168ccf8ed967eccb213302.zip |
DDF: ddf_set_array_state: more meaningful output
Print the array GUID and the array state.
Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | super-ddf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index 083b9e61..c50faf9d 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -3955,7 +3955,9 @@ static int ddf_set_array_state(struct active_array *a, int consistent) if (old != ddf->virt->entries[inst].init_state) ddf_set_updates_pending(ddf); - dprintf("ddf mark %d %s %llu\n", inst, consistent?"clean":"dirty", + dprintf("ddf mark %d/%s (%d) %s %llu\n", inst, + guid_str(ddf->virt->entries[inst].guid), a->curr_state, + consistent?"clean":"dirty", a->info.resync_start); return consistent; } |