diff options
author | N Balachandran <nbalacha@redhat.com> | 2019-07-29 15:20:22 +0530 |
---|---|---|
committer | N Balachandran <nbalacha@redhat.com> | 2019-08-06 06:38:42 +0000 |
commit | e3592d7fab0dc9d3f304d3eda34ba862f2c657a6 (patch) | |
tree | 4360636dd58a187ee18171716e5bf84bf73461c7 /xlators/cluster/dht/src/dht-common.c | |
parent | 0486821b33b2ece4058a78058f9f3e2f7149d8a7 (diff) |
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 <nbalacha@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); |