[Toybox] [PATCH] dmesg: fix multi-line messages
Ju Hyung Park
qkrwngud825 at gmail.com
Sun Mar 1 05:49:44 PST 2020
A single printk() can contain multiple lines via multiple '\n's,
and toybox just spits it out to a single line with '\x0a' as the delimiter.
Fix it.
Test:
sh -c "printf 'line a\nline b'" > /dev/kmsg
Before patch:
[ 5346.513120] line a\x0aline b
After patch:
[ 5346.513120] line a
line b
This patch is tested with -r, -T and -t.
Signed-off-by: Park Ju Hyung <qkrwngud825 at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dmesg-fix-multi-line-messages.patch
Type: text/x-patch
Size: 2412 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200301/a2ef062d/attachment-0001.bin>
More information about the Toybox
mailing list