1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-06 18:29:47 +00:00

Correct string pointer offset for error printout.

This commit is contained in:
Hans Petter Selasky 2015-03-24 16:37:19 +00:00
parent 32a0e5d55b
commit ab91c9a743
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280443

View File

@ -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);
}