From 76b6763372b7b40c36504e6dfb0a286792d6c2c8 Mon Sep 17 00:00:00 2001 From: Marco S Hyman Date: Thu, 17 Sep 1998 20:34:42 +0000 Subject: add NO_APMPRINT conditional --- sys/arch/i386/i386/apm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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 } /* -- cgit v1.2.3