Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Print "WARNING: negative runtime; monotonic clock h...
details: https://anonhg.NetBSD.org/src/rev/b299dad8b235
branches: trunk
changeset: 770139:b299dad8b235
user: apb <apb%NetBSD.org@localhost>
date: Wed Oct 05 13:05:49 2011 +0000
description:
Print "WARNING: negative runtime; monotonic clock has gone backwards\n"
using log(LOG_WARNING, ...), not just printf(...).
>From PR 45421 by Greg Woods.
diffstat:
sys/kern/kern_synch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 68414eba8afa -r b299dad8b235 sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c Wed Oct 05 12:34:04 2011 +0000
+++ b/sys/kern/kern_synch.c Wed Oct 05 13:05:49 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_synch.c,v 1.291 2011/09/27 01:02:38 jym Exp $ */
+/* $NetBSD: kern_synch.c,v 1.292 2011/10/05 13:05:49 apb Exp $ */
/*-
* Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.291 2011/09/27 01:02:38 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.292 2011/10/05 13:05:49 apb Exp $");
#include "opt_kstack.h"
#include "opt_perfctrs.h"
@@ -1262,7 +1262,7 @@
if (__predict_false(runtm < 0)) {
if (!backwards) {
backwards = true;
- printf("WARNING: negative runtime; "
+ log(LOG_WARNING, "WARNING: negative runtime; "
"monotonic clock has gone backwards\n");
}
} else if (__predict_false(sig)) {
Home |
Main Index |
Thread Index |
Old Index