summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-05-18 05:32:51 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2025-05-22 03:15:06 +0300
commit81c42933a50766f5230384375e28b5cd64a46113 (patch)
tree7dfb31ac81cb1a8dbee731890e637a4631aa6c4a
parent51e23c9d60a42f8da4d2f4d48c86eb00c4e351ea (diff)
downloadlinux-81c42933a50766f5230384375e28b5cd64a46113.tar.xz
bcachefs: Make accounting mismatch errors more readable
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/disk_accounting.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/disk_accounting.c b/fs/bcachefs/disk_accounting.c
index 2786a684b0c8..a26bc81a8f49 100644
--- a/fs/bcachefs/disk_accounting.c
+++ b/fs/bcachefs/disk_accounting.c
@@ -580,11 +580,11 @@ int bch2_gc_accounting_done(struct bch_fs *c)
prt_str(&buf, "accounting mismatch for ");
bch2_accounting_key_to_text(&buf, &acc_k);
- prt_str(&buf, ": got");
+ prt_str(&buf, ":\n got");
for (unsigned j = 0; j < nr; j++)
prt_printf(&buf, " %llu", dst_v[j]);
- prt_str(&buf, " should be");
+ prt_str(&buf, "\nshould be");
for (unsigned j = 0; j < nr; j++)
prt_printf(&buf, " %llu", src_v[j]);