summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>1998-09-17 20:34:42 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>1998-09-17 20:34:42 +0000
commit76b6763372b7b40c36504e6dfb0a286792d6c2c8 (patch)
treea59962d9ddf3761b061d71590821e62e423ebf7e /sys/arch
parentd54112be3fefad78ac382bff049d4de949e5782d (diff)
add NO_APMPRINT conditional
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/apm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c
index 98597dbeb51..b739ec9e017 100644
--- a/sys/arch/i386/i386/apm.c
+++ b/sys/arch/i386/i386/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.21 1998/07/18 02:40:33 marc Exp $ */
+/* $OpenBSD: apm.c,v 1.22 1998/09/17 20:34:41 marc Exp $ */
/*-
* Copyright (c) 1995 John T. Kohl. All rights reserved.
@@ -208,6 +208,7 @@ apm_power_print (sc, regs)
struct apm_softc *sc;
struct apmregs *regs;
{
+#if !defined(APM_NOPRINT)
sc->batt_life = BATT_LIFE(regs);
if (BATT_LIFE(regs) != APM_BATT_LIFE_UNKNOWN) {
printf("%s: battery life expectancy %d%%\n",
@@ -275,6 +276,7 @@ apm_power_print (sc, regs)
}
printf("\n");
+#endif
}
/*