klogd: handle multi-char log levels
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 5 Jan 2013 23:07:18 +0000 (00:07 +0100)
committerMike Frysinger <vapier@gentoo.org>
Sun, 6 Jan 2013 02:03:19 +0000 (21:03 -0500)
commitd189b598b449f3a258354133180e7b770c04526c
treedde534ca9011514c102a6327aa49721833cdc0fc
parent3917fa32dce8c887d0a87d0d2f4490f1b89b51d0
klogd: 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 use strtoul to parse it.

function                                             old     new   delta
klogd_main                                           490     525     +35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 35/0)               Total: 35 bytes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sysklogd/klogd.c