From e3592d7fab0dc9d3f304d3eda34ba862f2c657a6 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Mon, 29 Jul 2019 15:20:22 +0530 Subject: cluster/dht: Log hashes in hex Log layout hash ranges in hex to make it easier to compare them to the on disk xattrs. Change-Id: Ib75c2508bf8e0ab7f5ae26d0443ef02b792b7307 Fixes: bz#1697293 Signed-off-by: N Balachandran --- xlators/cluster/dht/src/dht-common.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xlators/cluster/dht/src/dht-common.c') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 8a1ec2baa7a..04abe008e17 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -10940,8 +10940,7 @@ dht_log_new_layout_for_dir_selfheal(xlator_t *this, loc_t *loc, for (i = 0; i < layout->cnt; i++) { ret = snprintf(string, sizeof(string), "[Subvol_name: %s, Err: %d , Start: " - "%" PRIu32 " , Stop: %" PRIu32 " , Hash: %" PRIu32 - " ], ", + "0x%x, Stop: 0x%x, Hash: 0x%x], ", layout->list[i].xlator->name, layout->list[i].err, layout->list[i].start, layout->list[i].stop, layout->list[i].commit_hash); @@ -10970,8 +10969,7 @@ dht_log_new_layout_for_dir_selfheal(xlator_t *this, loc_t *loc, for (i = 0; i < layout->cnt; i++) { ret = snprintf(output_string + off, len - off, "[Subvol_name: %s, Err: %d , Start: " - "%" PRIu32 " , Stop: %" PRIu32 " , Hash: %" PRIu32 - " ], ", + "0x%x, Stop: 0x%x, Hash: 0x%x], ", layout->list[i].xlator->name, layout->list[i].err, layout->list[i].start, layout->list[i].stop, layout->list[i].commit_hash); -- cgit