diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-23 21:27:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-03-23 21:27:38 +0000 |
commit | d85cf15ce16ec3bc31e6aff414c6213ad9dcf17f (patch) | |
tree | 4e1ea5aac68a88380771686d4fde67009e3f97b6 /sys/arch/landisk/dev | |
parent | f880be4594e702e459f1a64e16122a04a1548f62 (diff) |
Do not enter ddb from the interrupt handler unless option DEBUG.
Diffstat (limited to 'sys/arch/landisk/dev')
-rw-r--r-- | sys/arch/landisk/dev/power.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/landisk/dev/power.c b/sys/arch/landisk/dev/power.c index 7553d724b5c..7df1b11363d 100644 --- a/sys/arch/landisk/dev/power.c +++ b/sys/arch/landisk/dev/power.c @@ -1,4 +1,4 @@ -/* $OpenBSD: power.c,v 1.1 2007/01/15 22:22:18 martin Exp $ */ +/* $OpenBSD: power.c,v 1.2 2007/03/23 21:27:37 miod Exp $ */ /* * Copyright (c) 2007 Martin Reindl. @@ -77,7 +77,7 @@ power_attach(struct device *parent, struct device *self, void *aux) sc->sc_ih = extintr_establish(LANDISK_INTR_PWRSW, IPL_TTY, power_intr, sc, sc->sc_dev.dv_xname); if (sc->sc_ih == NULL) { - printf(": couldn't map interrupt"); + printf(": couldn't map interrupt\n"); return; } @@ -99,8 +99,8 @@ power_intr(void *arg) if ((status & BTN_POWER_BIT) && (kbd_reset == 1)) { #ifdef DEBUG printf("%s switched\n", sc->sc_dev.dv_xname); -#endif Debugger(); +#endif kbd_reset = 0; _reg_write_1(LANDISK_PWRSW_INTCLR, 1); psignal(initproc, SIGUSR1); |