summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-09-17 01:39:01 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:40 +0300
commit5a82c7c7d1925f6f060a427f38ea17b53c6945f1 (patch)
tree8e5086a7d49f15e9715c527adda290cde493dd86
parent5877d8876afe1c5843731244f39d1739eba2665f (diff)
downloadlinux-5a82c7c7d1925f6f060a427f38ea17b53c6945f1.tar.xz
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.c2
-rw-r--r--fs/bcachefs/super-io.c2
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 4953f54e94d6..220fda28c865 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) {