From 6b4a126c250d970139633934fa8a0cdbaebb195c Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 22 Jan 2009 15:35:54 +0000 Subject: Fix a compile bogon. 'ppbus' is used by two different sets of debug code in lptout(). Reported by: several --- sys/dev/ppbus/lpt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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))); -- cgit v1.1