cluster: STABLE3 - qdisk: fix mkqdisk output

Fabio M. Di Nitto fabbione@fedoraproject.org
Mon Jan 5 07:52:00 GMT 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=01d7e0764edc194d7215f5fc16c24f55c51a3755
Commit:        01d7e0764edc194d7215f5fc16c24f55c51a3755
Parent:        f1491522879e9ca1d71ac8f84fd12091de89c6d5
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:50:21 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(&timestamp));
-	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(&timestamp));
+	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);
 	}
 }
 



More information about the Cluster-cvs mailing list