]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: print_string_as_lines: avoid printing empty line
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 22 Apr 2025 10:03:33 +0000 (06:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:31 +0000 (20:14 -0400)
commitdbc18c97f1f0d336e3c4f6bb50f34c5255216995
tree60d772c1d16e99fd0f8b4bfe1e894d08239ad9c6
parent41e51769b8a649dd3db7070370cb6aa127f86307
bcachefs: print_string_as_lines: avoid printing empty line

If the final line in in the message to be printed is blang, don't print
it.

This happens with indented printbufs - after a newline we emit spaces up
to the indent level.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/util.c