Skip to content

Commit

Permalink
printk: silence healthd messages from userspace
Browse files Browse the repository at this point in the history
Constant messages about battery status every second doesn't help battery
or debugging.

Signed-off-by: kdrag0n <[email protected]>
  • Loading branch information
kdrag0n authored and chematelegram committed Dec 17, 2022
1 parent 2c98f2c commit 23012aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/printk/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,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);
kfree(buf);
return ret;
Expand Down

0 comments on commit 23012aa

Please sign in to comment.