From ab3b2cbda2bc4ce76246427758fd9c59dc6a95f2 Mon Sep 17 00:00:00 2001 From: Ming-Hung Tsai Date: Wed, 13 Jan 2021 12:02:20 +0800 Subject: [PATCH] [thin_debug] Refine the outputs - Show the blocknr from node header - Display the index of node entries --- thin-provisioning/thin_debug.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thin-provisioning/thin_debug.cc b/thin-provisioning/thin_debug.cc index fc725e8..96fca15 100644 --- a/thin-provisioning/thin_debug.cc +++ b/thin-provisioning/thin_debug.cc @@ -364,7 +364,7 @@ namespace { xml_formatter f; field(f, "csum", n.get_checksum()); - field(f, "blocknr", n.get_location()); + field(f, "blocknr", n.get_block_nr()); field(f, "type", n.get_type() == INTERNAL ? "internal" : "leaf"); field(f, "nr entries", n.get_nr_entries()); field(f, "max entries", n.get_max_entries()); @@ -374,7 +374,7 @@ namespace { formatter::ptr f2(new xml_formatter); field(*f2, "key", n.key_at(i)); ST::show(*f2, "value", n.value_at(i)); - f.child("child", f2); + f.child(lexical_cast(i), f2); } f.output(out, 0);