#1004886 dmesg: colorization of emerg/notice/info/debug not handled

Package:
util-linux
Source:
util-linux
Description:
miscellaneous system utilities
Submitter:
Eric Estievenart
Date:
2022-02-03 20:51:07 UTC
Severity:
normal
Tags:
#1004886#5
Date:
2022-02-02 21:57:09 UTC
From:
To:
Hello,
please find attached a very simple patch which allows consistent customization
of the coloring schemes  of the emerg, notice, info and debug levels in dmesg.
(currently only alert, crit, err and warn coloring schemes could be customized).

output changes (when coloring enabled):
	emerg level takes a default reverse+red, as alert and crit.
	debug level takes dark gray (seems reasonable)

As my color choices might not suit the masses (or even offend them!),
notice and info levels are unaffected and keep a default reset vt100 sequence.
Afterall, they could then be customized via /etc/terminal-colors.d/dmesg.scheme

== LEGAL STUFF ==
Due to the triviality of the patch, I HEREBY EXPLICITELY DISMISS any right, copyrights, whatsoever,
applying to this patch, with or without changes, and grant the rights to the Debian maintainer,
and/or upstream maintainers, or anybody, to have it applied to Debian and/or upstream, even on his/her own name,
without even mentioning me, hoping this will make things faster and paperless.
(If this is not sufficient or explicit enough, please tell, but, honestly...)

Regards, Thanks & Happy new year, if not too late.

#1004886#10
Date:
2022-02-03 20:50:26 UTC
From:
To:
Hello Eric Estievenart,

* Eric Estievenart <steve+deb@tecwec.eu> [220202 23:00]:

Thank you for submitting a patch. It is best if you submit your
patch directly to upstream. Please read this document, which
explains how to do it and what the legal requirements are:
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/Documentation/howto-contribute.txt

Many thanks,
Chris