Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Oct 2011 09:51:12 +0000 (UTC)
From:      Jonathan Anderson <jonathan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226098 - head/sys/kern
Message-ID:  <201110070951.p979pCVf003412@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jonathan
Date: Fri Oct  7 09:51:12 2011
New Revision: 226098
URL: http://svn.freebsd.org/changeset/base/226098

Log:
  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

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c	Fri Oct  7 09:35:17 2011	(r226097)
+++ head/sys/kern/vfs_subr.c	Fri Oct  7 09:51:12 2011	(r226098)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110070951.p979pCVf003412>