svn commit: r184403 - head/sys/dev/usb

Bjoern A. Zeeb bz at FreeBSD.org
Tue Oct 28 02:45:09 PDT 2008


Author: bz
Date: Tue Oct 28 09:45:07 2008
New Revision: 184403
URL: http://svn.freebsd.org/changeset/base/184403

Log:
  Unbreak LINT from r184381 using the correct variable in debugging
  DPRINTF for the device and remove dead code.

Modified:
  head/sys/dev/usb/u3g.c

Modified: head/sys/dev/usb/u3g.c
==============================================================================
--- head/sys/dev/usb/u3g.c	Tue Oct 28 09:16:34 2008	(r184402)
+++ head/sys/dev/usb/u3g.c	Tue Oct 28 09:45:07 2008	(r184403)
@@ -53,7 +53,7 @@
 
 //#define U3G_DEBUG
 #ifdef U3G_DEBUG
-#define DPRINTF(x...)		do { if (u3gdebug) device_printf(sc->dev, ##x); } while (0)
+#define DPRINTF(x...)		do { if (u3gdebug) device_printf(sc->sc_dev, ##x); } while (0)
 #define DPRINTFN(n, x...)	do { if (u3gdebug > (n)) device_printf(self, ##x); } while (0)
 int	u3gdebug = 1;
 #else
@@ -453,9 +453,6 @@ static int
 u3gstub_scsi_eject(struct u3gstub_softc *sc, struct usb_attach_arg *uaa)
 {
 	unsigned char cmd[31];
-#ifdef U3G_DEBUG
-	device_t self = uaa->device;
-#endif
 	usb_interface_descriptor_t *id;
 	usb_endpoint_descriptor_t *ed = NULL;
 	int i;


More information about the svn-src-all mailing list