mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-25 19:42:19 +00:00
bcachefs: Avoid bch2_btree_id_str()
Prefer bch2_btree_id_to_text() - it prints out the integer ID when unknown. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -472,7 +472,9 @@ static void bch2_cached_btree_node_to_text(struct printbuf *out, struct bch_fs *
|
||||
if (!out->nr_tabstops)
|
||||
printbuf_tabstop_push(out, 32);
|
||||
|
||||
prt_printf(out, "%px btree=%s l=%u\n", b, bch2_btree_id_str(b->c.btree_id), b->c.level);
|
||||
prt_printf(out, "%px ", b);
|
||||
bch2_btree_id_level_to_text(out, b->c.btree_id, b->c.level);
|
||||
prt_printf(out, "\n");
|
||||
|
||||
printbuf_indent_add(out, 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user