[Toybox] [PATCH] Implement "dmesg -w".
enh
enh at google.com
Fri Oct 28 16:04:49 PDT 2016
Annoyingly, this means writing a new dmesg implementation that uses /dev/kmsg
rather than the klogctl system call. Worse, pre-3.5 kernels don't support
that, so we need to keep the old implementation around as long as we still
care about those kernels.
Since I'm here, add the fancy colors from modern dmesg and the -C flag.
Tested on Nexus 9's 3.10 kernel, an Ubuntu 3.13 kernel, and the
Nexus One's 2.6.35 kernel.
---
toys/lsb/dmesg.c | 148 +++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 116 insertions(+), 32 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-dmesg-w.patch
Type: text/x-patch
Size: 6496 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20161028/f9a66153/attachment-0003.bin>
More information about the Toybox
mailing list