bcachefs: indent error messages of invalid compression
authorIntegral <integral@archlinuxcn.org>
Tue, 8 Apr 2025 10:31:29 +0000 (18:31 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:10 +0000 (20:14 -0400)
commitdd1b99f7060f781bea9973036ee96daa856f08c0
tree538b4ba12866eee3d25b487a570fe33ba0533639
parent84ccd47d265579dd23768e69b5204801ad6b5eca
bcachefs: indent error messages of invalid compression

This patch uses printbuf_indent_add_nextline() to set a consistent
indentation level for error messages of invalid compression.

In my previous patch [1], the newline is added by using '\n' in
the argument of prt_str(). This patch replaces prt_str() with
prt_printf() to make indentation level work correctly.

Link: https://lore.kernel.org/20250406152659.205997-2-integral@archlinuxcn.org
Signed-off-by: Integral <integral@archlinuxcn.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/compress.c
fs/bcachefs/opts.c