From 17bbb997d4b46a404d041671a9a2db57c2794382 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 28 Mar 2011 07:04:27 +1100 Subject: [PATCH] Print uuid out in verbose printout of cluster header. If being verbose, we may as well be complete. Signed-off-by: NeilBrown --- lib/lafs_print_cluster.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.39.5