svn commit: r280443 - head/sys/kern
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Mar 24 16:37:21 UTC 2015
Author: hselasky
Date: Tue Mar 24 16:37:19 2015
New Revision: 280443
URL: https://svnweb.freebsd.org/changeset/base/280443
Log:
Correct string pointer offset for error printout.
Modified:
head/sys/kern/kern_sysctl.c
Modified: head/sys/kern/kern_sysctl.c
==============================================================================
--- head/sys/kern/kern_sysctl.c Tue Mar 24 16:31:22 2015 (r280442)
+++ head/sys/kern/kern_sysctl.c Tue Mar 24 16:37:19 2015 (r280443)
@@ -285,7 +285,7 @@ sysctl_load_tunable_by_oid_locked(struct
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);
}
More information about the svn-src-head
mailing list