diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-13 01:15:44 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-11-13 01:15:44 +0000 |
commit | 39818cb95d55c186ed4bb51a4298bcc793178ffb (patch) | |
tree | 59d9efd6ff3338311a9fabf23a90a6326442da9d | |
parent | a1d539bdf5266a067ade5a3ed87ae401ebd068db (diff) |
fix output after deraadts fixes in usb. prints attach and address info on
one line now.
ok deraadt@
-rw-r--r-- | sys/dev/usb/if_cdcef.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/sys/dev/usb/if_cdcef.c b/sys/dev/usb/if_cdcef.c index 39361e29bcb..7e53e9a5099 100644 --- a/sys/dev/usb/if_cdcef.c +++ b/sys/dev/usb/if_cdcef.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdcef.c,v 1.18 2007/10/11 18:33:14 deraadt Exp $ */ +/* $OpenBSD: if_cdcef.c,v 1.19 2007/11/13 01:15:43 dlg Exp $ */ /* * Copyright (c) 2007 Dale Rahn <drahn@openbsd.org> @@ -165,14 +165,14 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) */ err = usbf_add_config(dev, &sc->sc_config); if (err) { - printf("%s: usbf_add_config failed\n", DEVNAME(sc)); + printf(": usbf_add_config failed\n"); return; } err = usbf_add_interface(sc->sc_config, UICLASS_CDC, UISUBCLASS_ETHERNET_NETWORKING_CONTROL_MODEL, 0, NULL, &sc->sc_iface); if (err) { - printf("%s: usbf_add_interface failed\n", DEVNAME(sc)); + printf(": usbf_add_interface failed\n"); return; } /* XXX don't use hard-coded values 128 and 16. */ @@ -181,7 +181,7 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) usbf_add_endpoint(sc->sc_iface, UE_DIR_OUT | 1, UE_BULK, 64, 16, &sc->sc_ep_out); if (err) { - printf("%s: usbf_add_endpoint failed\n", DEVNAME(sc)); + printf(": usbf_add_endpoint failed\n"); return; } @@ -194,7 +194,7 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) err = usbf_add_config_desc(sc->sc_config, (usb_descriptor_t *)&udesc, NULL); if (err) { - printf("%s: usbf_add_config_desc failed\n", DEVNAME(sc)); + printf(": usbf_add_config_desc failed\n"); return; } @@ -203,7 +203,7 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) */ err = usbf_end_config(sc->sc_config); if (err) { - printf("%s: usbf_end_config failed\n", DEVNAME(sc)); + printf(": usbf_end_config failed\n"); return; } @@ -215,7 +215,7 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) sc->sc_buffer_out = usbf_alloc_buffer(sc->sc_xfer_out, CDCEF_BUFSZ); if (sc->sc_buffer_in == NULL || sc->sc_buffer_out == NULL) { - printf("%s: usbf_alloc_buffer failed\n", DEVNAME(sc)); + printf(": usbf_alloc_buffer failed\n"); return; } @@ -225,7 +225,7 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) usbf_open_pipe(sc->sc_iface, usbf_endpoint_address(sc->sc_ep_in), &sc->sc_pipe_in); if (err) { - printf("%s: usbf_open_pipe failed\n", DEVNAME(sc)); + printf(": usbf_open_pipe failed\n"); return; } @@ -234,7 +234,7 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) sc->sc_buffer_out, CDCEF_BUFSZ, USBD_SHORT_XFER_OK, 0, cdcef_rxeof); err = usbf_transfer(sc->sc_xfer_out); if (err && err != USBF_IN_PROGRESS) { - printf("%s: usbf_transfer failed\n", DEVNAME(sc)); + printf(": usbf_transfer failed\n"); return; } @@ -245,8 +245,7 @@ cdcef_attach(struct device *parent, struct device *self, void *aux) bcopy(&ticks, &sc->sc_arpcom.ac_enaddr[2], sizeof(u_int32_t)); sc->sc_arpcom.ac_enaddr[5] = (u_int8_t)(sc->sc_unit); - printf("%s: address %s\n", DEVNAME(sc), - ether_sprintf(sc->sc_arpcom.ac_enaddr)); + printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); ifp = GET_IFP(sc); ifp->if_softc = sc; |