mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
bcachefs: Fix sb_field_counters formatting
We have counters with longer names now, so adjust the tabstop - also, make sure there's always a space printed between the name and the number. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
5877d8876a
commit
5a82c7c7d1
|
|
@ -36,7 +36,7 @@ void bch2_sb_counters_to_text(struct printbuf *out, struct bch_sb *sb,
|
|||
|
||||
for (i = 0; i < nr; i++) {
|
||||
if (i < BCH_COUNTER_NR)
|
||||
prt_printf(out, "%s", bch2_counter_names[i]);
|
||||
prt_printf(out, "%s ", bch2_counter_names[i]);
|
||||
else
|
||||
prt_printf(out, "(unknown)");
|
||||
|
||||
|
|
|
|||
|
|
@ -1483,7 +1483,7 @@ void bch2_sb_to_text(struct printbuf *out, struct bch_sb *sb,
|
|||
unsigned nr_devices = 0;
|
||||
|
||||
if (!out->nr_tabstops)
|
||||
printbuf_tabstop_push(out, 32);
|
||||
printbuf_tabstop_push(out, 44);
|
||||
|
||||
mi = bch2_sb_get_members(sb);
|
||||
if (mi) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user