This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: master - qdisk: fix mkqdisk output
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Mon, 5 Jan 2009 07:53:13 +0000 (UTC)
- Subject: cluster: master - qdisk: fix mkqdisk output
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=22c8083315eec74bee174c5ebeccc6e38d8c1ab5
Commit: 22c8083315eec74bee174c5ebeccc6e38d8c1ab5
Parent: 64cbd506b3abf6f75444a8f5d23896386f48667e
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Mon Jan 5 08:50:21 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon Jan 5 08:53:04 2009 +0100
qdisk: fix mkqdisk output
we killed output to std* by default in logging. we can't use log*print*
anylonger for this operation. Switch back to printf.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
cman/qdisk/proc.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/cman/qdisk/proc.c b/cman/qdisk/proc.c
index 812c69a..b4f60dd 100644
--- a/cman/qdisk/proc.c
+++ b/cman/qdisk/proc.c
@@ -185,14 +185,14 @@ print_qdisk_info(struct devnode *dn)
time_t timestamp = (time_t)qh->qh_timestamp;
for (dp = dn->devpath; dp; dp = dp->next)
- logt_print(LOG_INFO, "%s:\n", dp->path);
- logt_print(LOG_INFO, "\tMagic: %08x\n", qh->qh_magic);
- logt_print(LOG_INFO, "\tLabel: %s\n", qh->qh_cluster);
- logt_print(LOG_INFO, "\tCreated: %s", ctime(×tamp));
- logt_print(LOG_INFO, "\tHost: %s\n", qh->qh_updatehost);
- logt_print(LOG_INFO, "\tKernel Sector Size: %d\n", qh->qh_kernsz);
+ printf("%s:\n", dp->path);
+ printf("\tMagic: %08x\n", qh->qh_magic);
+ printf("\tLabel: %s\n", qh->qh_cluster);
+ printf("\tCreated: %s", ctime(×tamp));
+ printf("\tHost: %s\n", qh->qh_updatehost);
+ printf("\tKernel Sector Size: %d\n", qh->qh_kernsz);
if (qh->qh_version == VERSION_MAGIC_V2) {
- logt_print(LOG_INFO, "\tRecorded Sector Size: %d\n\n", (int)qh->qh_blksz);
+ printf("\tRecorded Sector Size: %d\n\n", (int)qh->qh_blksz);
}
}