[PATCH] net: Downgrade CAP_SYS_MODULE deprecated message from error to warning.

Subsystems: networking [general], the rest

STALE5196d

2 messages, 2 authors, 2012-06-28 · open the first message on its own page

[PATCH] net: Downgrade CAP_SYS_MODULE deprecated message from error to warning.

From: Vinson Lee <hidden>
Date: 2012-06-28 00:32:26

Make logging level consistent with other deprecation messages in net
subsystem.

Signed-off-by: Vinson Lee <redacted>
Cc: David Mackey <redacted>
---
 net/core/dev.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index cd09819..b19a361 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);
-- 
1.7.9.5

Re: [PATCH] net: Downgrade CAP_SYS_MODULE deprecated message from error to warning.

From: David Miller <davem@davemloft.net>
Date: 2012-06-28 23:55:30

From: Vinson Lee <redacted>
Date: Wed, 27 Jun 2012 17:32:07 -0700
Make logging level consistent with other deprecation messages in net
subsystem.

Signed-off-by: Vinson Lee <redacted>
Cc: David Mackey <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help