Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc/arc Tidy up some debug messages.
details: https://anonhg.NetBSD.org/src/rev/0075fe9441c5
branches: trunk
changeset: 509642:0075fe9441c5
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed May 09 16:44:44 2001 +0000
description:
Tidy up some debug messages.
diffstat:
sys/arch/arc/arc/clock_mc.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r eb0660d07f0d -r 0075fe9441c5 sys/arch/arc/arc/clock_mc.c
--- a/sys/arch/arc/arc/clock_mc.c Wed May 09 16:40:59 2001 +0000
+++ b/sys/arch/arc/arc/clock_mc.c Wed May 09 16:44:44 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock_mc.c,v 1.11 2001/02/17 04:27:53 tsutsui Exp $ */
+/* $NetBSD: clock_mc.c,v 1.12 2001/05/09 16:44:44 tsutsui Exp $ */
/* $OpenBSD: clock_mc.c,v 1.9 1998/03/16 09:38:26 pefo Exp $ */
/* NetBSD: clock_mc.c,v 1.2 1995/06/28 04:30:30 cgd Exp */
@@ -260,7 +260,11 @@
s = splclock();
MC146818_GETTOD(csc, ®s);
-printf("%d-%d-%d, %d:%d:%d\n", regs[MC_YEAR], regs[MC_MONTH], regs[MC_DOM], regs[MC_HOUR], regs[MC_MIN], regs[MC_SEC]);
+#ifdef DEBUG
+ printf("mcclock_set: %04d-%02d-%02d %02d:%02d:%02d\n",
+ regs[MC_YEAR] + 1980, regs[MC_MONTH], regs[MC_DOM],
+ regs[MC_HOUR], regs[MC_MIN], regs[MC_SEC]);
+#endif
regs[MC_SEC] = ct->sec;
regs[MC_MIN] = ct->min;
@@ -280,7 +284,11 @@
MC146818_PUTTOD(csc, ®s);
MC146818_GETTOD(csc, ®s);
-printf("%d-%d-%d, %d:%d:%d\n", regs[MC_YEAR], regs[MC_MONTH], regs[MC_DOM], regs[MC_HOUR], regs[MC_MIN], regs[MC_SEC]);
+#ifdef DEBUG
+ printf("mcclock_set: %04d-%02d-%02d %02d:%02d:%02d\n",
+ regs[MC_YEAR] + 1980, regs[MC_MONTH], regs[MC_DOM],
+ regs[MC_HOUR], regs[MC_MIN], regs[MC_SEC]);
+#endif
splx(s);
}
Home |
Main Index |
Thread Index |
Old Index