svn commit: r187591 - head/sys/dev/ppbus

John Baldwin jhb at FreeBSD.org
Thu Jan 22 07:35:55 PST 2009


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)));


More information about the svn-src-head mailing list