From: Dan Williams Date: Tue, 16 Sep 2008 03:58:43 +0000 (-0700) Subject: monitor: clean up some debug messages X-Git-Tag: mdadm-3.0-devel1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4065aa816a64e9909ba1106640951f1dd490c4d0;p=thirdparty%2Fmdadm.git monitor: clean up some debug messages Signed-off-by: Dan Williams --- diff --git a/monitor.c b/monitor.c index 35f80a70..bd67e1ad 100644 --- a/monitor.c +++ b/monitor.c @@ -284,7 +284,8 @@ static int read_and_act(struct active_array *a) } a->container->ss->sync_metadata(a->container); - dprintf("%s: update[%d]: (", __func__, a->info.container_member); + dprintf("%s(%d): state:%s action:%s next(", __func__, a->info.container_member, + array_states[a->curr_state], sync_actions[a->curr_action]); /* Effect state changes in the array */ if (a->next_state != bad_word) { @@ -293,7 +294,7 @@ static int read_and_act(struct active_array *a) } if (a->next_action != bad_action) { write_attr(sync_actions[a->next_action], a->action_fd); - dprintf(" action:%s", array_states[a->next_state]); + dprintf(" action:%s", sync_actions[a->next_action]); } for (mdi = a->info.devs; mdi ; mdi = mdi->next) { if (mdi->next_state & DS_UNBLOCK) {