printk: silence healthd messages from userspace

Constant messages about battery status every second doesn't help battery
or debugging.

Signed-off-by: kdrag0n <dragon@khronodragon.com>
This commit is contained in:
kdrag0n 2018-07-23 15:05:12 -07:00 committed by prashantpaddune
parent a8312e4346
commit 4c5ccd7047

View File

@ -802,6 +802,10 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
} }
} }
if (strncmp("healthd", line, 7) == 0) {
return len;
}
printk_emit(facility, level, NULL, 0, "%s", line); printk_emit(facility, level, NULL, 0, "%s", line);
kfree(buf); kfree(buf);
return ret; return ret;