summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-07-11 15:44:02 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-07-11 15:44:02 -0400
commitcc1f2deb960478d556e2d61be70ca412e12425d1 (patch)
tree1a06118248f14802f30bc118170190033d7dbd62
parentbad0c8c50758b4447d529f61017c1a8c85976a3e (diff)
cmd_list: Fix indenting in -m nodes_ondisk
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--cmd_list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd_list.c b/cmd_list.c
index f506e422..38d017d5 100644
--- a/cmd_list.c
+++ b/cmd_list.c
@@ -190,8 +190,10 @@ static void print_node_ondisk(struct bch_fs *c, struct btree *b)
struct bkey u;
struct printbuf buf = PRINTBUF;
+ printbuf_indent_add(&buf, 4);
+
bch2_bkey_val_to_text(&buf, c, bkey_disassemble(b, k, &u));
- fprintf(stdout, " %s\n", buf.buf);
+ fprintf(stdout, "%s\n", buf.buf);
printbuf_exit(&buf);
}