[PATCH RFC 4/7] net: sysctl: add new sysctl table handler to debug message

From: Thomas Weißschuh
Date: Sat Nov 25 2023 - 07:53:17 EST


The sysctl core introduce an alternative handler function.
Log it in the debug message, too.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
net/sysctl_net.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/sysctl_net.c b/net/sysctl_net.c
index 051ed5f6fc93..29d871097ddc 100644
--- a/net/sysctl_net.c
+++ b/net/sysctl_net.c
@@ -132,8 +132,9 @@ static void ensure_safe_net_sysctl(struct net *net, const char *path,
unsigned long addr;
const char *where;

- pr_debug(" procname=%s mode=%o proc_handler=%ps data=%p\n",
- ent->procname, ent->mode, ent->proc_handler, ent->data);
+ pr_debug(" procname=%s mode=%o proc_handler=%ps/%ps data=%p\n",
+ ent->procname, ent->mode, ent->proc_handler,
+ ent->proc_handler_new, ent->data);

/* If it's not writable inside the netns, then it can't hurt. */
if ((ent->mode & 0222) == 0) {

--
2.43.0