From 56eb62091a8c51b0660eb282a8a32610007de917 Mon Sep 17 00:00:00 2001 From: hselasky Date: Tue, 24 Mar 2015 16:37:19 +0000 Subject: [PATCH] Correct string pointer offset for error printout. --- sys/kern/kern_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index c02b61530a1a..c447455c59bc 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -285,7 +285,7 @@ sysctl_load_tunable_by_oid_locked(struct sysctl_oid *oidp) error = sysctl_root_handler_locked(oidp, oidp->oid_arg1, oidp->oid_arg2, &req); if (error != 0) - printf("Setting sysctl %s failed: %d\n", path, error); + printf("Setting sysctl %s failed: %d\n", path + rem, error); if (penv != NULL) freeenv(penv); }