From: NeilBrown Date: Sun, 27 Mar 2011 20:04:27 +0000 (+1100) Subject: Print uuid out in verbose printout of cluster header. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=17bbb997d4b46a404d041671a9a2db57c2794382;p=lafs-utils.git Print uuid out in verbose printout of cluster header. If being verbose, we may as well be complete. Signed-off-by: NeilBrown --- diff --git a/lib/lafs_print_cluster.c b/lib/lafs_print_cluster.c index 4138ea7..c1e4124 100644 --- a/lib/lafs_print_cluster.c +++ b/lib/lafs_print_cluster.c @@ -1,5 +1,6 @@ #include #include +#include #include "internal.h" static char *VerifyNames[] = {"Null", "Next", "Next2", "Sum",}; @@ -14,6 +15,7 @@ void lafs_print_cluster(struct cluster_head *head, int blocksize, u64 start; int i; long offset = 0; + char uuidstr[37]; if (verbose) { printf("ClusterHead:\n"); @@ -24,6 +26,8 @@ void lafs_print_cluster(struct cluster_head *head, int blocksize, if (le32_to_cpu(head->flags)&(1<uuid, uuidstr); + printf(" UUID : %s\n", uuidstr); printf(" Seq : %llu\n", (unsigned long long)__le64_to_cpu(head->seq)); printf(" Hlength : %d\n", (int)__le16_to_cpu(head->Hlength)); printf(" Clength : %d\n", (int)__le16_to_cpu(head->Clength));