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/lru.c | |
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 'fs/bcachefs/lru.c')
-rw-r--r-- | fs/bcachefs/lru.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/bcachefs/lru.c b/fs/bcachefs/lru.c index a299d9ec8ee4..2f63fc6d456f 100644 --- a/fs/bcachefs/lru.c +++ b/fs/bcachefs/lru.c @@ -101,8 +101,7 @@ int bch2_lru_check_set(struct btree_trans *trans, goto err; if (fsck_err(trans, alloc_key_to_missing_lru_entry, - "missing %s lru entry\n" - " %s", + "missing %s lru entry\n%s", bch2_lru_types[lru_type(lru_k)], (bch2_bkey_val_to_text(&buf, c, referring_k), buf.buf))) { ret = bch2_lru_set(trans, lru_id, dev_bucket, time); @@ -190,8 +189,8 @@ static int bch2_check_lru_key(struct btree_trans *trans, if (fsck_err(trans, lru_entry_bad, "incorrect lru entry: lru %s time %llu\n" - " %s\n" - " for %s", + "%s\n" + "for %s", bch2_lru_types[type], lru_pos_time(lru_k.k->p), (bch2_bkey_val_to_text(&buf1, c, lru_k), buf1.buf), |