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-selfheal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/dht/src/dht-selfheal.c') diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index 11e4a34175c..e7d8028f7f8 100644 --- a/xlators/cluster/dht/src/dht-selfheal.c +++ b/xlators/cluster/dht/src/dht-selfheal.c @@ -19,7 +19,7 @@ layout->list[i].commit_hash = layout->commit_hash; \ \ gf_msg_trace(this->name, 0, \ - "gave fix: %u - %u, with commit-hash %u" \ + "gave fix: 0x%x - 0x%x, with commit-hash 0x%x" \ " on %s for %s", \ layout->list[i].start, layout->list[i].stop, \ layout->list[i].commit_hash, \ @@ -778,7 +778,7 @@ dht_selfheal_dir_xattr_persubvol(call_frame_t *frame, loc_t *loc, disk_layout = NULL; gf_msg_trace(this->name, 0, - "setting hash range %u - %u (type %d) on subvolume %s" + "setting hash range 0x%x - 0x%x (type %d) on subvolume %s" " for %s", layout->list[i].start, layout->list[i].stop, layout->type, subvol->name, loc->path); -- cgit