hush/util-linux
Peter Korsgaard 3917fa32dc dmesg: handle multi-char log levels
Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length
record buffer), klog buffer can now contain log lines with multi-char
loglevel indicators (<[0-9]+>) - So we can no longer just skip 3 bytes.

Instead skip past the terminating '>' like util-linux does.

function                                             old     new   delta
dmesg_main                                           266     280     +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0)               Total: 13 bytes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-05 21:02:14 -05:00
..
2012-11-13 14:40:37 +01:00
2012-11-13 14:40:37 +01:00
2013-01-05 21:02:14 -05:00
2010-10-28 18:57:19 +02:00
2010-10-28 18:57:19 +02:00
2011-08-09 22:49:15 +02:00
2012-02-09 18:39:16 +01:00
2011-06-03 20:25:17 +02:00
2011-07-08 05:47:49 +02:00
2012-06-11 14:57:29 +02:00
2011-12-15 12:39:25 +01:00