dmesg: implement official '-r' and colored output '-C'

Actually there is no way to have the level with the DMESG_PRETTY
-r option (raw format) is present for that in debian systems

The optional -C allow a colored output for both configs
this parameter is inspired from android logcat one.

Behavior is kept (default is raw if DMESG_PRETTY config is not set)

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2 files changed