Skip to content

Commit 4346359

Browse files
author
Kent Overstreet
committed
bcachefs: Fix missing newlines before ero
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 88bd771 commit 4346359

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

fs/bcachefs/data_update.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ static int data_update_invalid_bkey(struct data_update *m,
249249
bch2_bkey_val_to_text(&buf, c, k);
250250
prt_str(&buf, "\nnew: ");
251251
bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(insert));
252+
prt_newline(&buf);
252253

253254
bch2_fs_emergency_read_only2(c, &buf);
254255

fs/bcachefs/journal_io.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,9 +1716,10 @@ static CLOSURE_CALLBACK(journal_write_done)
17161716
bch2_log_msg_start(c, &buf);
17171717

17181718
if (err == -BCH_ERR_journal_write_err)
1719-
prt_printf(&buf, "unable to write journal to sufficient devices");
1719+
prt_printf(&buf, "unable to write journal to sufficient devices\n");
17201720
else
1721-
prt_printf(&buf, "journal write error marking replicas: %s", bch2_err_str(err));
1721+
prt_printf(&buf, "journal write error marking replicas: %s\n",
1722+
bch2_err_str(err));
17221723

17231724
bch2_fs_emergency_read_only2(c, &buf);
17241725

fs/bcachefs/recovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ int bch2_fs_recovery(struct bch_fs *c)
11421142
struct printbuf buf = PRINTBUF;
11431143
bch2_log_msg_start(c, &buf);
11441144

1145-
prt_printf(&buf, "error in recovery: %s", bch2_err_str(ret));
1145+
prt_printf(&buf, "error in recovery: %s\n", bch2_err_str(ret));
11461146
bch2_fs_emergency_read_only2(c, &buf);
11471147

11481148
bch2_print_str(c, KERN_ERR, buf.buf);

0 commit comments

Comments
 (0)