This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
master - fenced/dlm_controld/gfs_controld: modify a debug message
- From: David Teigland <teigland at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Tue, 14 Oct 2008 21:39:14 +0000 (UTC)
- Subject: master - fenced/dlm_controld/gfs_controld: modify a debug message
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9d279da3138226b8a9765b09e6aa1e7fdfcc5a54
Commit: 9d279da3138226b8a9765b09e6aa1e7fdfcc5a54
Parent: 5dc473236dc19be6295beb422b8732b684a1fde8
Author: David Teigland <teigland@redhat.com>
AuthorDate: Tue Oct 14 16:24:12 2008 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Tue Oct 14 16:24:12 2008 -0500
fenced/dlm_controld/gfs_controld: modify a debug message
show the cg seq number in the wait_messages debug line to make
it clear which cg it's counting messages for
Signed-off-by: David Teigland <teigland@redhat.com>
---
fence/fenced/cpg.c | 5 +++--
group/dlm_controld/cpg.c | 5 +++--
group/gfs_controld/cpg-new.c | 5 +++--
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/fence/fenced/cpg.c b/fence/fenced/cpg.c
index 2168995..fc9e06a 100644
--- a/fence/fenced/cpg.c
+++ b/fence/fenced/cpg.c
@@ -580,11 +580,12 @@ static int wait_messages_done(struct fd *fd)
}
if (need) {
- log_debug("wait_messages need %d of %d", need, total);
+ log_debug("wait_messages cg %u need %d of %d",
+ cg->seq, need, total);
return 0;
}
- log_debug("wait_messages got all %d", total);
+ log_debug("wait_messages cg %u got all %d", cg->seq, total);
return 1;
}
diff --git a/group/dlm_controld/cpg.c b/group/dlm_controld/cpg.c
index 2b9270e..44bd6eb 100644
--- a/group/dlm_controld/cpg.c
+++ b/group/dlm_controld/cpg.c
@@ -690,11 +690,12 @@ static int wait_messages_done(struct lockspace *ls)
}
if (need) {
- log_group(ls, "wait_messages need %d of %d", need, total);
+ log_group(ls, "wait_messages cg %u need %d of %d",
+ cg->seq, need, total);
return 0;
}
- log_group(ls, "wait_messages got all %d", total);
+ log_group(ls, "wait_messages cg %u got all %d", cg->seq, total);
return 1;
}
diff --git a/group/gfs_controld/cpg-new.c b/group/gfs_controld/cpg-new.c
index bd8bc67..2730c9f 100644
--- a/group/gfs_controld/cpg-new.c
+++ b/group/gfs_controld/cpg-new.c
@@ -816,11 +816,12 @@ static int wait_messages_done(struct mountgroup *mg)
}
if (need) {
- log_group(mg, "wait_messages need %d of %d", need, total);
+ log_group(mg, "wait_messages cg %u need %d of %d",
+ cg->seq, need, total);
return 0;
}
- log_group(mg, "wait_messages got all %d", total);
+ log_group(mg, "wait_messages cg %u got all %d", cg->seq, total);
return 1;
}