klogd: code shrink
function old new delta klogd_main 511 486 -25 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
3d07446cef
commit
c16ae469ef
@ -275,10 +275,13 @@ int klogd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
priority = LOG_INFO;
|
priority = LOG_INFO;
|
||||||
if (*start == '<') {
|
if (*start == '<') {
|
||||||
start++;
|
start++;
|
||||||
if (*start)
|
if (*start) {
|
||||||
priority = strtoul(start, &start, 10);
|
char *end;
|
||||||
if (*start == '>')
|
priority = strtoul(start, &end, 10);
|
||||||
start++;
|
if (*end == '>')
|
||||||
|
end++;
|
||||||
|
start = end;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* Log (only non-empty lines) */
|
/* Log (only non-empty lines) */
|
||||||
if (*start)
|
if (*start)
|
||||||
|
Loading…
Reference in New Issue
Block a user