summaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@twitter.com>2012-06-27 16:32:07 +0200
committerDavid S. Miller <davem@davemloft.net>2012-06-29 01:55:05 +0200
commit7cecb523adedcaf8acba5e14d47559d8bc3f40d7 (patch)
tree1690f19445c048fcbd7de34dbf38d851d0fee27c /net/core/dev.c
parentnet: qmi_wwan: fix Oops while disconnecting (diff)
downloadlinux-7cecb523adedcaf8acba5e14d47559d8bc3f40d7.tar.xz
linux-7cecb523adedcaf8acba5e14d47559d8bc3f40d7.zip
net: Downgrade CAP_SYS_MODULE deprecated message from error to warning.
Make logging level consistent with other deprecation messages in net subsystem. Signed-off-by: Vinson Lee <vlee@twitter.com> Cc: David Mackey <tdmackey@twitter.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 6df214041a5e..84f01ba81a34 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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);