diff options
author | Vinson Lee <vlee@twitter.com> | 2012-06-27 16:32:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-29 01:55:05 +0200 |
commit | 7cecb523adedcaf8acba5e14d47559d8bc3f40d7 (patch) | |
tree | 1690f19445c048fcbd7de34dbf38d851d0fee27c | |
parent | net: qmi_wwan: fix Oops while disconnecting (diff) | |
download | linux-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>
-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); |