Skip to content

Commit

Permalink
net: bpfilter: print umh messages to /dev/kmsg
Browse files Browse the repository at this point in the history
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=1140221

Signed-off-by: Gary Lin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
lcp authored and davem330 committed Jul 8, 2019
1 parent 6b4ddf9 commit 36c4357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bpfilter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void loop(void)

int main(void)
{
debug_fd = open("/dev/console", 00000002);
debug_fd = open("/dev/kmsg", 00000002);
dprintf(debug_fd, "Started bpfilter\n");
loop();
close(debug_fd);
Expand Down

0 comments on commit 36c4357

Please sign in to comment.