diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-09-16 18:39:01 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-03 23:54:11 -0400 |
commit | 59cf835b837236c47b3442c3205b7b84169a8e71 (patch) | |
tree | e7032abb2840ac90a9961cbb67c4dc25133f3b74 | |
parent | 72cd7ef5bfe7767f38d38ecfacb4a64935790fea (diff) |
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>
-rw-r--r-- | fs/bcachefs/counters.c | 2 | ||||
-rw-r--r-- | fs/bcachefs/super-io.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/counters.c b/fs/bcachefs/counters.c index 745f856e6d3e..edd1b2537f48 100644 --- a/fs/bcachefs/counters.c +++ b/fs/bcachefs/counters.c @@ -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)"); diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index d56dc65f3d50..c72632f67a5e 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -1475,7 +1475,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) { |