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
This commit is contained in:
parent
aee3499ac4
commit
25e33e625f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226098
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user