Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cecb523 authored by Vinson Lee's avatar Vinson Lee Committed by David S. Miller
Browse files

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: default avatarVinson Lee <vlee@twitter.com>
Cc: David Mackey <tdmackey@twitter.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d9b87068
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1136,7 +1136,7 @@ void dev_load(struct net *net, const char *name)
		no_module = request_module("netdev-%s", name);
		no_module = request_module("netdev-%s", name);
	if (no_module && capable(CAP_SYS_MODULE)) {
	if (no_module && capable(CAP_SYS_MODULE)) {
		if (!request_module("%s", name))
		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",
			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);
				name);
	}
	}
}
}