]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: Start colouring subsys delimiter only after trailing blank
authorChris Down <chris@chrisdown.name>
Tue, 15 Feb 2022 13:39:57 +0000 (13:39 +0000)
committerChris Down <chris@chrisdown.name>
Tue, 15 Feb 2022 13:52:03 +0000 (13:52 +0000)
commit5fd8d6551cfee8de7c6718ed3b96d8cbc2ab995e
tree8dc209c33fdeb552e922f8d63795be25262243bf
parent2a28d961f7045bb46effb1afe5cc8d65c9f7a289
dmesg: Start colouring subsys delimiter only after trailing blank

This improves colouring when certain message levels are configured to
display a background colour using terminal-colors.d. Previously the
background colour starts at ":" on messages with a subsystem present,
which looks pretty odd. Now it starts from the remaining message after
the subsys (if there is one).

If one only uses foreground colours, this largely makes no difference:
the colon is now coloured with the same subsys colour, but there's no
difference for the blank.

Signed-off-by: Chris Down <chris@chrisdown.name>
sys-utils/dmesg.c