Commit d7b21954 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Pretty-ify bch2_bkey_val_to_text()

Don't print out the ": " when there isn't a value to print.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent 38200544
......@@ -269,7 +269,7 @@ void bch2_bkey_val_to_text(struct printbuf *out, struct bch_fs *c,
{
bch2_bkey_to_text(out, k.k);
if (k.k) {
if (bkey_val_bytes(k.k)) {
pr_buf(out, ": ");
bch2_val_to_text(out, c, k);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment