Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2008 09:45:07 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184403 - head/sys/dev/usb
Message-ID:  <200810280945.m9S9j7H8089422@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810280945.m9S9j7H8089422>