From owner-svn-src-head@FreeBSD.ORG Tue Oct 28 09:45:08 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5457106569D; Tue, 28 Oct 2008 09:45:08 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D4CEB8FC18; Tue, 28 Oct 2008 09:45:08 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9S9j7fE089423; Tue, 28 Oct 2008 09:45:07 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9S9j7H8089422; Tue, 28 Oct 2008 09:45:07 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200810280945.m9S9j7H8089422@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Tue, 28 Oct 2008 09:45:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184403 - head/sys/dev/usb X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 09:45:09 -0000 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;