diff options
author | 2003-09-28 22:10:41 +0000 | |
---|---|---|
committer | 2003-09-28 22:10:41 +0000 | |
commit | 40f3cda3733cbd4fbef3eb036ce42ca7ed324fd4 (patch) | |
tree | f8538c394f6d52b34b9d6f7b1e8dcab89c505f8f | |
parent | Properly acknowledge MVME188 clock interrupts. (diff) | |
download | wireguard-openbsd-40f3cda3733cbd4fbef3eb036ce42ca7ed324fd4.tar.xz wireguard-openbsd-40f3cda3733cbd4fbef3eb036ce42ca7ed324fd4.zip |
Be less verbose, unless option DEBUG, when the nvram battery is toast.
-rw-r--r-- | sys/arch/mvme88k/dev/nvram.c | 8 |
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. |