summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-09-28 22:10:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-09-28 22:10:42 +0000
commit616f27119d4f8697ab9751845a304fbd9f840c2d (patch)
tree833597b5182551b2b0c5960570f2c8a8f1cf5497
parent1538ffc0cc448d72c872a46fd8c380f0c87da265 (diff)
Be less verbose, unless option DEBUG, when the nvram battery is toast.
-rw-r--r--sys/arch/mvme88k/dev/nvram.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/dev/nvram.c b/sys/arch/mvme88k/dev/nvram.c
index a18363d56b1..e9f5a92a809 100644
--- a/sys/arch/mvme88k/dev/nvram.c
+++ b/sys/arch/mvme88k/dev/nvram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvram.c,v 1.20 2003/06/02 07:06:56 deraadt Exp $ */
+/* $OpenBSD: nvram.c,v 1.21 2003/09/28 22:10:41 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -325,10 +325,12 @@ inittodr(base)
cl->cl_csr &= ~CLK_READ; /* time wears on... */
}
if ((time.tv_sec = chiptotime(sec, min, hour, day, mon, year)) == 0) {
- printf("WARNING: bad date in nvram\n");
- printf("day = %d, mon = %d, year = %d, hour = %d, min = %d, sec = %d",
+ printf("WARNING: bad date in nvram");
+#ifdef DEBUG
+ printf("\nday = %d, mon = %d, year = %d, hour = %d, min = %d, sec = %d",
FROMBCD(day), FROMBCD(mon), FROMBCD(year) + YEAR0,
FROMBCD(hour), FROMBCD(min), FROMBCD(sec));
+#endif
/*
* Believe the time in the file system for lack of
* anything better, resetting the clock.