svn commit: r269569 - in head/sys/dev/usb: controller serial wlan

Nick Hibma n_hibma at FreeBSD.org
Tue Aug 5 08:24:42 UTC 2014


Author: n_hibma
Date: Tue Aug  5 08:24:41 2014
New Revision: 269569
URL: http://svnweb.freebsd.org/changeset/base/269569

Log:
  Remove unused defines.
  Fix some device_printf's that were missing '\n' at the end or had
  speling errors.
  
  PR:		145319
  Submitted by:	rozhuk.im gmail.com

Modified:
  head/sys/dev/usb/controller/ehci.c
  head/sys/dev/usb/serial/u3g.c
  head/sys/dev/usb/serial/uftdi.c
  head/sys/dev/usb/wlan/if_upgt.c

Modified: head/sys/dev/usb/controller/ehci.c
==============================================================================
--- head/sys/dev/usb/controller/ehci.c	Tue Aug  5 08:00:01 2014	(r269568)
+++ head/sys/dev/usb/controller/ehci.c	Tue Aug  5 08:24:41 2014	(r269569)
@@ -210,7 +210,7 @@ ehci_reset(ehci_softc_t *sc)
 			return (0);
 		}
 	}
-	device_printf(sc->sc_bus.bdev, "Reset timeout\n");
+	device_printf(sc->sc_bus.bdev, "reset timeout\n");
 	return (USB_ERR_IOERROR);
 }
 
@@ -285,7 +285,7 @@ ehci_init_sub(struct ehci_softc *sc)
 		}
 	}
 	if (hcr) {
-		device_printf(sc->sc_bus.bdev, "Run timeout\n");
+		device_printf(sc->sc_bus.bdev, "run timeout\n");
 		return (USB_ERR_IOERROR);
 	}
 	return (USB_ERR_NORMAL_COMPLETION);

Modified: head/sys/dev/usb/serial/u3g.c
==============================================================================
--- head/sys/dev/usb/serial/u3g.c	Tue Aug  5 08:00:01 2014	(r269568)
+++ head/sys/dev/usb/serial/u3g.c	Tue Aug  5 08:24:41 2014	(r269569)
@@ -76,15 +76,6 @@ SYSCTL_INT(_hw_usb_u3g, OID_AUTO, debug,
 #define	U3G_CONFIG_INDEX	0
 #define	U3G_BSIZE		2048
 
-#define	U3GSP_GPRS		0
-#define	U3GSP_EDGE		1
-#define	U3GSP_CDMA		2
-#define	U3GSP_UMTS		3
-#define	U3GSP_HSDPA		4
-#define	U3GSP_HSUPA		5
-#define	U3GSP_HSPA		6
-#define	U3GSP_MAX		7
-
 /* Eject methods; See also usb_quirks.h:UQ_MSC_EJECT_* */
 #define	U3GINIT_HUAWEI		1	/* Requires Huawei init command */
 #define	U3GINIT_SIERRA		2	/* Requires Sierra init command */
@@ -890,7 +881,7 @@ u3g_attach(device_t dev)
 		sc->sc_iface[nports] = id->bInterfaceNumber;
 
 		if (bootverbose && sc->sc_xfer[nports][U3G_INTR]) {
-			device_printf(dev, "port %d supports modem control",
+			device_printf(dev, "port %d supports modem control\n",
 				      nports);
 		}
 

Modified: head/sys/dev/usb/serial/uftdi.c
==============================================================================
--- head/sys/dev/usb/serial/uftdi.c	Tue Aug  5 08:00:01 2014	(r269568)
+++ head/sys/dev/usb/serial/uftdi.c	Tue Aug  5 08:24:41 2014	(r269569)
@@ -1034,7 +1034,7 @@ uftdi_devtype_setup(struct uftdi_softc *
 		} else {
 			sc->sc_devtype = DEVT_232R;
 			device_printf(sc->sc_dev, "Warning: unknown FTDI "
-			    "device type, bcdDevice=0x%04x, assuming 232R", 
+			    "device type, bcdDevice=0x%04x, assuming 232R\n", 
 			    uaa->info.bcdDevice);
 		}
 		sc->sc_ucom.sc_portno = 0;

Modified: head/sys/dev/usb/wlan/if_upgt.c
==============================================================================
--- head/sys/dev/usb/wlan/if_upgt.c	Tue Aug  5 08:00:01 2014	(r269568)
+++ head/sys/dev/usb/wlan/if_upgt.c	Tue Aug  5 08:24:41 2014	(r269569)
@@ -428,7 +428,7 @@ upgt_get_stats(struct upgt_softc *sc)
 
 	data_cmd = upgt_getbuf(sc);
 	if (data_cmd == NULL) {
-		device_printf(sc->sc_dev, "%s: out of buffer.\n", __func__);
+		device_printf(sc->sc_dev, "%s: out of buffers.\n", __func__);
 		return;
 	}
 


More information about the svn-src-all mailing list