From 4065aa816a64e9909ba1106640951f1dd490c4d0 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 15 Sep 2008 20:58:43 -0700 Subject: monitor: clean up some debug messages Signed-off-by: Dan Williams --- monitor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'monitor.c') 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) { -- cgit v1.2.3