summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-01-22 15:35:54 +0000
committerjhb <jhb@FreeBSD.org>2009-01-22 15:35:54 +0000
commit6b4a126c250d970139633934fa8a0cdbaebb195c (patch)
tree3675511eb750464adf498f3f9b8ea8c52e8ec85a /sys
parent75d3feba46a045fd2c2ef3984774b259ceaab50f (diff)
downloadFreeBSD-src-6b4a126c250d970139633934fa8a0cdbaebb195c.zip
FreeBSD-src-6b4a126c250d970139633934fa8a0cdbaebb195c.tar.gz
Fix a compile bogon. 'ppbus' is used by two different sets of debug code
in lptout(). Reported by: several
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ppbus/lpt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c
index e4288fc..4c88508 100644
--- a/sys/dev/ppbus/lpt.c
+++ b/sys/dev/ppbus/lpt.c
@@ -447,7 +447,9 @@ lptout(void *arg)
{
struct lpt_data *sc = arg;
device_t dev = sc->sc_dev;
+#if defined(INVARIANTS) || defined(LPT_DEBUG)
device_t ppbus = device_get_parent(dev);
+#endif
ppb_assert_locked(ppbus);
lprintf(("T %x ", ppb_rstr(ppbus)));
OpenPOWER on IntegriCloud