Date: Thu, 22 Jan 2009 15:35:54 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r187591 - head/sys/dev/ppbus Message-ID: <200901221535.n0MFZspe015985@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Thu Jan 22 15:35:54 2009 New Revision: 187591 URL: http://svn.freebsd.org/changeset/base/187591 Log: Fix a compile bogon. 'ppbus' is used by two different sets of debug code in lptout(). Reported by: several Modified: head/sys/dev/ppbus/lpt.c Modified: head/sys/dev/ppbus/lpt.c ============================================================================== --- head/sys/dev/ppbus/lpt.c Thu Jan 22 14:30:35 2009 (r187590) +++ head/sys/dev/ppbus/lpt.c Thu Jan 22 15:35:54 2009 (r187591) @@ -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)));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901221535.n0MFZspe015985>