Commit 36c4357c authored by Gary Lin's avatar Gary Lin Committed by David S. Miller

net: bpfilter: print umh messages to /dev/kmsg

bpfilter_umh currently printed all messages to /dev/console and this
might interfere the user activity(*).

This commit changes the output device to /dev/kmsg so that the messages
from bpfilter_umh won't show on the console directly.

(*) https://bugzilla.suse.com/show_bug.cgi?id=1140221Signed-off-by: default avatarGary Lin <glin@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b4ddf99
...@@ -55,7 +55,7 @@ static void loop(void) ...@@ -55,7 +55,7 @@ static void loop(void)
int main(void) int main(void)
{ {
debug_fd = open("/dev/console", 00000002); debug_fd = open("/dev/kmsg", 00000002);
dprintf(debug_fd, "Started bpfilter\n"); dprintf(debug_fd, "Started bpfilter\n");
loop(); loop();
close(debug_fd); close(debug_fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment