From: Kent Overstreet Date: Sun, 18 May 2025 02:32:51 +0000 (-0400) Subject: bcachefs: Make accounting mismatch errors more readable X-Git-Tag: v6.16-rc1~211^2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81c42933a50766f5230384375e28b5cd64a46113;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Make accounting mismatch errors more readable Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/disk_accounting.c b/fs/bcachefs/disk_accounting.c index 2786a684b0c8d..a26bc81a8f497 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]);