Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 2009 04:57:41 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r198740 - user/kmacy/releng_8_fcs_buf/sys/kern
Message-ID:  <200911010457.nA14vfZL013743@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Sun Nov  1 04:57:41 2009
New Revision: 198740
URL: http://svn.freebsd.org/changeset/base/198740

Log:
  don't stall the whole system with gratuitous calcru printfs

Modified:
  user/kmacy/releng_8_fcs_buf/sys/kern/kern_resource.c

Modified: user/kmacy/releng_8_fcs_buf/sys/kern/kern_resource.c
==============================================================================
--- user/kmacy/releng_8_fcs_buf/sys/kern/kern_resource.c	Sun Nov  1 04:43:35 2009	(r198739)
+++ user/kmacy/releng_8_fcs_buf/sys/kern/kern_resource.c	Sun Nov  1 04:57:41 2009	(r198740)
@@ -56,6 +56,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/sx.h>
 #include <sys/syscallsubr.h>
 #include <sys/sysent.h>
+#include <sys/syslog.h>
 #include <sys/time.h>
 #include <sys/umtx.h>
 
@@ -900,7 +901,8 @@ calcru1(struct proc *p, struct rusage_ex
 		 * serious, so lets keep it and hope laptops can be made
 		 * more truthful about their CPU speed via ACPI.
 		 */
-		printf("calcru: runtime went backwards from %ju usec "
+		log(LOG_WARNING,
+		    "calcru: runtime went backwards from %ju usec "
 		    "to %ju usec for pid %d (%s)\n",
 		    (uintmax_t)ruxp->rux_tu, (uintmax_t)tu,
 		    p->p_pid, p->p_comm);



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