diff options
author | jonathan <jonathan@FreeBSD.org> | 2011-10-07 09:51:12 +0000 |
---|---|---|
committer | jonathan <jonathan@FreeBSD.org> | 2011-10-07 09:51:12 +0000 |
commit | 9c782bcdf637c77a4fd07dbf73eb4515c5085b65 (patch) | |
tree | e9fe21beade019ca98942f741d0651bcc1da9c41 /sys/kern | |
parent | df7e5429bc91a9a1952154bba8fb132c498d8a52 (diff) | |
download | FreeBSD-src-9c782bcdf637c77a4fd07dbf73eb4515c5085b65.zip FreeBSD-src-9c782bcdf637c77a4fd07dbf73eb4515c5085b65.tar.gz |
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
Diffstat (limited to 'sys/kern')
-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 85d176f..3d8152e 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) |