diff options
author | Vinson Lee <vlee@twitter.com> | 2012-06-27 14:32:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-28 16:55:05 -0700 |
commit | 7cecb523adedcaf8acba5e14d47559d8bc3f40d7 (patch) | |
tree | 1690f19445c048fcbd7de34dbf38d851d0fee27c /net | |
parent | d9b8706843a501034d09bea63ca6723a2ed02b11 (diff) | |
download | blackbird-op-linux-7cecb523adedcaf8acba5e14d47559d8bc3f40d7.tar.gz blackbird-op-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')
-rw-r--r-- | net/core/dev.c | 4 |
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); |