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-shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/dht/src/dht-shared.c') diff --git a/xlators/cluster/dht/src/dht-shared.c b/xlators/cluster/dht/src/dht-shared.c index e4c9d5c3dec..0b73121b15a 100644 --- a/xlators/cluster/dht/src/dht-shared.c +++ b/xlators/cluster/dht/src/dht-shared.c @@ -72,9 +72,9 @@ dht_layout_dump(dht_layout_t *layout, const char *prefix) gf_proc_dump_build_key(key, prefix, "list[%d].err", i); gf_proc_dump_write(key, "%d", layout->list[i].err); gf_proc_dump_build_key(key, prefix, "list[%d].start", i); - gf_proc_dump_write(key, "%u", layout->list[i].start); + gf_proc_dump_write(key, "0x%x", layout->list[i].start); gf_proc_dump_build_key(key, prefix, "list[%d].stop", i); - gf_proc_dump_write(key, "%u", layout->list[i].stop); + gf_proc_dump_write(key, "0x%x", layout->list[i].stop); if (layout->list[i].xlator) { gf_proc_dump_build_key(key, prefix, "list[%d].xlator.type", i); gf_proc_dump_write(key, "%s", layout->list[i].xlator->type); -- cgit