Skip to content

Commit

Permalink
net: Downgrade CAP_SYS_MODULE deprecated message from error to warning.
Browse files Browse the repository at this point in the history
Make logging level consistent with other deprecation messages in net
subsystem.

Signed-off-by: Vinson Lee <[email protected]>
Cc: David Mackey <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Vinson Lee authored and davem330 committed Jun 28, 2012
1 parent d9b8706 commit 7cecb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,8 +1136,8 @@ void dev_load(struct net *net, const char *name)
no_module = request_module("netdev-%s", name);
if (no_module && capable(CAP_SYS_MODULE)) {
if (!request_module("%s", name))
pr_err("Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-%s instead.\n",
name);
pr_warn("Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-%s instead.\n",
name);
}
}
EXPORT_SYMBOL(dev_load);
Expand Down

0 comments on commit 7cecb52

Please sign in to comment.