diff options
author | 2007-03-23 21:27:37 +0000 | |
---|---|---|
committer | 2007-03-23 21:27:37 +0000 | |
commit | 189cf00f829742fd10b6f9d16d9740a25279e3b3 (patch) | |
tree | b6a1cf0454adf79b6298b9d90a97c4960d03ad05 | |
parent | Real atomic_{set,clear}bits_int implementation, and replace similar (diff) | |
download | wireguard-openbsd-189cf00f829742fd10b6f9d16d9740a25279e3b3.tar.xz wireguard-openbsd-189cf00f829742fd10b6f9d16d9740a25279e3b3.zip |
Do not enter ddb from the interrupt handler unless option DEBUG.
-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); |