Commit 0475c763 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: better check_bp_exists() error message

parent d01ea14d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -566,10 +566,10 @@ static int check_bp_exists(struct btree_trans *trans,
	goto err;
missing:
	printbuf_reset(&buf);
	prt_str(&buf, "missing backpointer ");
	bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&bp->k_i));
	prt_newline(&buf);
	prt_str(&buf, "missing backpointer\n  for:  ");
	bch2_bkey_val_to_text(&buf, c, orig_k);
	prt_printf(&buf, "\n  want: ");
	bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&bp->k_i));
	prt_printf(&buf, "\n  got:  ");
	bch2_bkey_val_to_text(&buf, c, bp_k);