Commit 43463598 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix missing newlines before ero

parent 88bd7711
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -249,6 +249,7 @@ static int data_update_invalid_bkey(struct data_update *m,
	bch2_bkey_val_to_text(&buf, c, k);
	prt_str(&buf, "\nnew: ");
	bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(insert));
	prt_newline(&buf);

	bch2_fs_emergency_read_only2(c, &buf);

+3 −2
Original line number Diff line number Diff line
@@ -1716,9 +1716,10 @@ static CLOSURE_CALLBACK(journal_write_done)
		bch2_log_msg_start(c, &buf);

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

		bch2_fs_emergency_read_only2(c, &buf);

+1 −1
Original line number Diff line number Diff line
@@ -1142,7 +1142,7 @@ int bch2_fs_recovery(struct bch_fs *c)
		struct printbuf buf = PRINTBUF;
		bch2_log_msg_start(c, &buf);

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

		bch2_print_str(c, KERN_ERR, buf.buf);