diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 18:14:36 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 18:14:36 +0000 |
commit | 386e046573a90a6b706557885ef8053217cdc0b5 (patch) | |
tree | 76919d344e72fdfcf35f23d64a1cb710b68e0889 /sys/dev/ic | |
parent | fa7de56e8cb83dfbc4a72043594e31c38ee8a9c8 (diff) |
Correctly protect the arguments of the AIC_ASSERT() macro.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/aic6360var.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aic6360var.h b/sys/dev/ic/aic6360var.h index 228bedf8ce0..d0c4dceb0fe 100644 --- a/sys/dev/ic/aic6360var.h +++ b/sys/dev/ic/aic6360var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: aic6360var.h,v 1.7 2011/04/03 12:42:36 krw Exp $ */ +/* $OpenBSD: aic6360var.h,v 1.8 2011/04/06 18:14:35 miod Exp $ */ /* $NetBSD: aic6360.c,v 1.52 1996/12/10 21:27:51 thorpej Exp $ */ /* @@ -197,7 +197,7 @@ struct aic_softc { do { if ((aic_debug & AIC_DOBREAK) != 0) Debugger(); } while (0) #define AIC_ASSERT(x) \ do { \ - if (!x) { \ + if (!(x)) { \ printf("%s at line %d: assertion failed\n", \ sc->sc_dev.dv_xname, __LINE__); \ Debugger(); \ |