diff options
author | 2025-03-26 13:21:11 -0400 | |
---|---|---|
committer | 2025-03-28 22:31:47 -0400 | |
commit | 1ece53237e83edb12cb6c1a8b91f54735e64d95f (patch) | |
tree | d75fec57aa2673a24e64c471e42c2db801e73c1b /fs/bcachefs/util.h | |
parent | bcachefs: Add an "ignore unknown" option to bch2_parse_mount_opts() (diff) | |
download | wireguard-linux-1ece53237e83edb12cb6c1a8b91f54735e64d95f.tar.xz wireguard-linux-1ece53237e83edb12cb6c1a8b91f54735e64d95f.zip |
bcachefs: Consistent indentation of multiline fsck errors
Add the new helper printbuf_indent_add_nextline(), and use it in
__bch2_fsck_err() to centralize setting the indentation of multiline
fsck errors.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 7d921fc920a0..1e94f89aabed 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -94,6 +94,7 @@ do { \ #define printbuf_tabstop_push(_buf, _n) bch2_printbuf_tabstop_push(_buf, _n) #define printbuf_indent_add(_out, _n) bch2_printbuf_indent_add(_out, _n) +#define printbuf_indent_add_nextline(_out, _n) bch2_printbuf_indent_add_nextline(_out, _n) #define printbuf_indent_sub(_out, _n) bch2_printbuf_indent_sub(_out, _n) #define prt_newline(_out) bch2_prt_newline(_out) |