printk: silence healthd and batteryd logs
* <3>batteryd, <4>healthd
This commit is contained in:
parent
cdc44de3ca
commit
d8672064ab
@ -820,6 +820,10 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
|
||||
*/
|
||||
line = buf;
|
||||
if (line[0] == '<') {
|
||||
if (memcmp(line+3, "batteryd", sizeof("batteryd")-1) == 0 ||
|
||||
memcmp(line+3, "healthd", sizeof("healthd")-1) == 0)
|
||||
goto ignore;
|
||||
{
|
||||
char *endp = NULL;
|
||||
unsigned int u;
|
||||
|
||||
@ -832,9 +836,11 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
|
||||
len -= endp - line;
|
||||
line = endp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
printk_emit(facility, level, NULL, 0, "%s", line);
|
||||
ignore:
|
||||
kfree(buf);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user