Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 Make some APMDEBUG verbosity only verbose...
details: https://anonhg.NetBSD.org/src/rev/9a2921e97005
branches: trunk
changeset: 513634:9a2921e97005
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Aug 06 07:59:39 2001 +0000
description:
Make some APMDEBUG verbosity only verbose if the INFO debug flag is set.
diffstat:
sys/arch/i386/i386/apm.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (44 lines):
diff -r 263f0bae3f50 -r 9a2921e97005 sys/arch/i386/i386/apm.c
--- a/sys/arch/i386/i386/apm.c Mon Aug 06 07:00:59 2001 +0000
+++ b/sys/arch/i386/i386/apm.c Mon Aug 06 07:59:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apm.c,v 1.62 2001/07/22 16:05:17 itojun Exp $ */
+/* $NetBSD: apm.c,v 1.63 2001/08/06 07:59:39 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -919,24 +919,24 @@
#ifdef APMDEBUG
/* print out stats */
- printf("apm: %d batteries", APM_NBATTERIES(regs));
+ DPRINTF(APMDEBUG_INFO, ("apm: %d batteries", APM_NBATTERIES(regs)));
if (regs->CX & APM_GLOBAL_STANDBY)
- printf(", global standby");
+ DPRINTF(APMDEBUG_INFO, (", global standby"));
if (regs->CX & APM_GLOBAL_SUSPEND)
- printf(", global suspend");
+ DPRINTF(APMDEBUG_INFO, (", global suspend"));
if (regs->CX & APM_RTIMER_STANDBY)
- printf(", rtimer standby");
+ DPRINTF(APMDEBUG_INFO, (", rtimer standby"));
if (regs->CX & APM_RTIMER_SUSPEND)
- printf(", rtimer suspend");
+ DPRINTF(APMDEBUG_INFO, (", rtimer suspend"));
if (regs->CX & APM_IRRING_STANDBY)
- printf(", internal standby");
+ DPRINTF(APMDEBUG_INFO, (", internal standby"));
if (regs->CX & APM_IRRING_SUSPEND)
- printf(", internal suspend");
+ DPRINTF(APMDEBUG_INFO, (", internal suspend"));
if (regs->CX & APM_PCRING_STANDBY)
- printf(", pccard standby");
+ DPRINTF(APMDEBUG_INFO, (", pccard standby"));
if (regs->CX & APM_PCRING_SUSPEND)
- printf(", pccard suspend");
- printf("\n");
+ DPRINTF(APMDEBUG_INFO, (", pccard suspend"));
+ DPRINTF(APMDEBUG_INFO, ("\n"));
#endif
}
Home |
Main Index |
Thread Index |
Old Index