net: Downgrade CAP_SYS_MODULE deprecated message from error to warning.
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Cc David Mackey <[email protected]>
--- net/core/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/core/dev.c +2 -2
@@ -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);
Signature · 1 line
1.7.9.5
From: Vinson Lee <[email protected]>
Date: Wed, 27 Jun 2012 17:32:07 -0700
Quoted 5 lines
Make logging level consistent with other deprecation messages in net subsystem.
Signed-off-by Vinson Lee <[email protected]>Cc David Mackey <[email protected]>
Applied, thanks.