diff options
| author | sato <sato@NetBSD.org> | 2001-07-31 10:37:49 +0000 |
|---|---|---|
| committer | sato <sato@NetBSD.org> | 2001-07-31 10:37:49 +0000 |
| commit | 387ddeb6f12e5d0ed394556b54353322afa6df30 (patch) | |
| tree | 4682cb92b7fc8c3c40b80cbd33d13590af8451e7 /sys/dev | |
| parent | 5bacff5834cc6b9743ddf0ea24fdb6ffea795332 (diff) | |
change DPRINTF() to VPRINTF() in pwctl_hardpower().
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/hpc/pwctl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/hpc/pwctl.c b/sys/dev/hpc/pwctl.c index e81b046e94a..38500bbb465 100644 --- a/sys/dev/hpc/pwctl.c +++ b/sys/dev/hpc/pwctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: pwctl.c,v 1.5 2001/06/04 18:59:32 uch Exp $ */ +/* $NetBSD: pwctl.c,v 1.6 2001/07/31 10:37:49 sato Exp $ */ /*- * Copyright (c) 1999-2001 @@ -39,6 +39,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/device.h> +#include <sys/reboot.h> #include <machine/bus.h> #include <machine/config_hook.h> @@ -53,8 +54,10 @@ #ifdef PWCTLVRGIUDEBUG int pwctl_debug = 1; #define DPRINTF(arg) if (pwctl_debug) printf arg; +#define VPRINTF(arg) if (bootverbose) printf arg; #else #define DPRINTF(arg) +#define VPRINTF(arg) if (bootverbose) printf arg; #endif struct pwctl_softc { @@ -169,13 +172,11 @@ pwctl_hardpower(void *ctx, int type, long id, void *msg) struct pwctl_softc *sc = ctx; int why =(int)msg; -#if 1 - /* XXX debug print cause hang system... Huum...*/ - DPRINTF(("pwctl hardpower: port %d %s: %s(%d)\n", sc->sc_port, + VPRINTF(("pwctl hardpower: port %d %s: %s(%d)\n", sc->sc_port, why == PWR_RESUME? "resume" : why == PWR_SUSPEND? "suspend" : "standby", sc->sc_save == sc->sc_on ? "on": "off", sc->sc_save)); -#endif /* 0 */ + switch (why) { case PWR_STANDBY: break; |
