diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-22 00:16:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-20 13:54:48 -0400 |
commit | f3cd24b05dfac667f183c0d12eac8890edb95f62 (patch) | |
tree | 8831dff58cc40359a085532071ed5df11bfa9c33 /fs/bcachefs/debug.c | |
parent | a136245957317195bb1aa87040d5ceba05a916b4 (diff) |
bcachefs: Convert to lib/printbuf.cprintbuf_v2
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/debug.c')
-rw-r--r-- | fs/bcachefs/debug.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/bcachefs/debug.c b/fs/bcachefs/debug.c index 3b869be18506..db9f54420072 100644 --- a/fs/bcachefs/debug.c +++ b/fs/bcachefs/debug.c @@ -24,6 +24,7 @@ #include <linux/console.h> #include <linux/debugfs.h> #include <linux/module.h> +#include <linux/pretty-printers.h> #include <linux/random.h> #include <linux/seq_file.h> @@ -433,14 +434,14 @@ static void bch2_cached_btree_node_to_text(struct printbuf *out, struct bch_fs * b->c.level); pr_newline(out); - pr_indent_push(out, 2); + pr_indent_add(out, 2); bch2_bkey_val_to_text(out, c, bkey_i_to_s_c(&b->key)); pr_newline(out); pr_buf(out, "flags: "); pr_tab(out); - bch2_flags_to_text(out, bch2_btree_node_flags, b->flags); + pr_bitflags(out, bch2_btree_node_flags, b->flags); pr_newline(out); pr_buf(out, "pcpu read locks: "); @@ -473,7 +474,7 @@ static void bch2_cached_btree_node_to_text(struct printbuf *out, struct bch_fs * pr_buf(out, "%llu", b->writes[1].journal.seq); pr_newline(out); - pr_indent_pop(out, 2); + pr_indent_sub(out, 2); } static ssize_t bch2_cached_btree_nodes_read(struct file *file, char __user *buf, |