]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: Make accounting mismatch errors more readable
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 18 May 2025 02:32:51 +0000 (22:32 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:15:06 +0000 (20:15 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/disk_accounting.c

index 2786a684b0c8d79602b729ace7fca2f821188868..a26bc81a8f497e455d4a1ed5cc4498a43ff85384 100644 (file)
@@ -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]);