Avoid wrapping lines in attach printfs.
This commit is contained in:
parent
7d417ca964
commit
fd3af06364
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uhid.c,v 1.6 1998/11/25 22:32:05 augustss Exp $ */
|
||||
/* $NetBSD: uhid.c,v 1.7 1998/12/02 17:20:20 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -157,8 +157,8 @@ uhid_attach(parent, self, aux)
|
|||
sc->sc_iface = iface;
|
||||
id = usbd_get_interface_descriptor(iface);
|
||||
usbd_devinfo(uaa->device, 0, devinfo);
|
||||
printf(": %s (interface class %d/%d)\n", devinfo,
|
||||
id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
printf("\n%s: %s, interface class %d/%d\n", sc->sc_dev.dv_xname,
|
||||
devinfo, id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
ed = usbd_interface2endpoint_descriptor(iface, 0);
|
||||
if (!ed) {
|
||||
printf("%s: could not read endpoint descriptor\n",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uhub.c,v 1.6 1998/11/25 22:32:05 augustss Exp $ */
|
||||
/* $NetBSD: uhub.c,v 1.7 1998/12/02 17:20:20 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -130,7 +130,7 @@ uhub_attach(parent, self, aux)
|
|||
DPRINTFN(1,("uhub_attach\n"));
|
||||
sc->sc_hub = dev;
|
||||
usbd_devinfo(dev, 1, devinfo);
|
||||
printf(": %s\n", devinfo);
|
||||
printf("\n%s: %s\n", sc->sc_dev.dv_xname, devinfo);
|
||||
|
||||
r = usbd_set_config_no(dev, 0, 1);
|
||||
if (r != USBD_NORMAL_COMPLETION) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ukbd.c,v 1.11 1998/11/25 22:32:05 augustss Exp $ */
|
||||
/* $NetBSD: ukbd.c,v 1.12 1998/12/02 17:20:20 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -258,8 +258,8 @@ ukbd_attach(parent, self, aux)
|
|||
sc->sc_iface = iface;
|
||||
id = usbd_get_interface_descriptor(iface);
|
||||
usbd_devinfo(uaa->device, 0, devinfo);
|
||||
printf(": %s (interface class %d/%d)\n", devinfo,
|
||||
id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
printf("\n%s: %s, interface class %d/%d\n", sc->sc_dev.dv_xname,
|
||||
devinfo, id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
ed = usbd_interface2endpoint_descriptor(iface, 0);
|
||||
if (!ed) {
|
||||
printf("%s: could not read endpoint descriptor\n",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ulpt.c,v 1.3 1998/11/25 22:32:05 augustss Exp $ */
|
||||
/* $NetBSD: ulpt.c,v 1.4 1998/12/02 17:20:20 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -163,8 +163,8 @@ ulpt_attach(parent, self, aux)
|
|||
|
||||
DPRINTFN(2,("ulpt_attach: sc=%p\n", sc));
|
||||
usbd_devinfo(dev, 0, devinfo);
|
||||
printf(": %s (interface class %d/%d)\n", devinfo,
|
||||
id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
printf("\n%s: %s, interface class %d/%d\n", sc->sc_dev.dv_xname,
|
||||
devinfo, id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
|
||||
/* Figure out which endpoint is the bulk out endpoint. */
|
||||
ed = usbd_interface2endpoint_descriptor(iface, 0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ums.c,v 1.11 1998/11/25 22:32:05 augustss Exp $ */
|
||||
/* $NetBSD: ums.c,v 1.12 1998/12/02 17:20:20 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -176,8 +176,8 @@ ums_attach(parent, self, aux)
|
|||
sc->sc_iface = iface;
|
||||
id = usbd_get_interface_descriptor(iface);
|
||||
usbd_devinfo(uaa->device, 0, devinfo);
|
||||
printf(": %s (interface class %d/%d)\n", devinfo,
|
||||
id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
printf("\n%s: %s, interface class %d/%d\n", sc->sc_dev.dv_xname,
|
||||
devinfo, id->bInterfaceClass, id->bInterfaceSubClass);
|
||||
ed = usbd_interface2endpoint_descriptor(iface, 0);
|
||||
if (!ed) {
|
||||
printf("%s: could not read endpoint descriptor\n",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: usb_subr.c,v 1.9 1998/11/25 22:32:05 augustss Exp $ */
|
||||
/* $NetBSD: usb_subr.c,v 1.10 1998/12/02 17:20:20 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -202,8 +202,7 @@ usbd_devinfo(dev, showclass, cp)
|
|||
int bcdDevice, bcdUSB;
|
||||
|
||||
usbd_devinfo_vp(dev, vendor, product);
|
||||
cp += sprintf(cp, "%s", vendor);
|
||||
cp += sprintf(cp, " %s", product);
|
||||
cp += sprintf(cp, "addr %d, %s %s", dev->address, vendor, product);
|
||||
if (showclass)
|
||||
cp += sprintf(cp, " (class %d/%d)",
|
||||
udd->bDeviceClass, udd->bDeviceSubClass);
|
||||
|
@ -214,7 +213,7 @@ usbd_devinfo(dev, showclass, cp)
|
|||
*cp++ = '/';
|
||||
cp += usbd_printBCD(cp, bcdDevice);
|
||||
*cp++ = ')';
|
||||
cp += sprintf(cp, " (addr %d)", dev->address);
|
||||
*cp = 0;
|
||||
}
|
||||
|
||||
/* Delay for a certain number of ms */
|
||||
|
@ -734,10 +733,10 @@ usbd_print(aux, pnp)
|
|||
if (!uaa->usegeneric)
|
||||
return (QUIET);
|
||||
usbd_devinfo(uaa->device, 1, devinfo);
|
||||
printf("%s at %s", devinfo, pnp);
|
||||
printf("%s: %s", pnp, devinfo);
|
||||
}
|
||||
if (uaa->port != 0)
|
||||
printf(" port %d", uaa->port);
|
||||
printf(", port %d", uaa->port);
|
||||
return (UNCONF);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue