diff options
author | Jonathan Anderson <jonathan@FreeBSD.org> | 2011-10-07 09:51:12 +0000 |
---|---|---|
committer | Jonathan Anderson <jonathan@FreeBSD.org> | 2011-10-07 09:51:12 +0000 |
commit | 25e33e625f35b0a23c07b34063aecbf30733b399 (patch) | |
tree | e9fe21beade019ca98942f741d0651bcc1da9c41 /sys | |
parent | aee3499ac4fa1ae8e531eef5c96aca529ced1154 (diff) | |
download | src-25e33e625f35b0a23c07b34063aecbf30733b399.tar.gz src-25e33e625f35b0a23c07b34063aecbf30733b399.zip |
Change one printf() to log().
As noted in kern/159780, printf() is not very jail-friendly, since it can't be easily monitored by jail management tools. This patch reports an error via log() instead, which, if nobody is watching the log file, still prints to the console.
Approved by: mentor (rwatson)
Submitted by: Eugene Grosbein <eugen@eg.sd.rdtc.ru>
MFC after: 5 days
Notes
Notes:
svn path=/head/; revision=226098
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 85d176f8c124..3d8152e9d5ae 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -3054,7 +3054,7 @@ vfs_sysctl(SYSCTL_HANDLER_ARGS) struct vfsconf *vfsp; struct xvfsconf xvfsp; - printf("WARNING: userland calling deprecated sysctl, " + log(LOG_WARNING, "userland calling deprecated sysctl, " "please rebuild world\n"); #if 1 || defined(COMPAT_PRELITE2) |