summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorVinson Lee <vlee@twitter.com>2012-06-27 14:32:07 +0000
committerDavid S. Miller <davem@davemloft.net>2012-06-28 16:55:05 -0700
commit7cecb523adedcaf8acba5e14d47559d8bc3f40d7 (patch)
tree1690f19445c048fcbd7de34dbf38d851d0fee27c /net/core
parentd9b8706843a501034d09bea63ca6723a2ed02b11 (diff)
downloadblackbird-obmc-linux-7cecb523adedcaf8acba5e14d47559d8bc3f40d7.tar.gz
blackbird-obmc-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')
-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);
OpenPOWER on IntegriCloud