From: Kent Overstreet Date: Fri, 16 Sep 2022 22:39:01 +0000 (-0400) Subject: bcachefs: Fix sb_field_counters formatting X-Git-Tag: v6.7-rc1~201^2~788 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a82c7c7d1925f6f060a427f38ea17b53c6945f1;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/fs/bcachefs/counters.c b/fs/bcachefs/counters.c index 745f856e6d3e9..edd1b2537f482 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 4953f54e94d60..220fda28c8653 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -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) {