diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2018-06-12 06:59:28 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2018-06-12 06:59:28 +0000 |
commit | 78fd5d93219b693ee5b39c7e029dd1ed26a5a16a (patch) | |
tree | dfa0498c72a30211178b19c493b6d4a9f4646630 /sys | |
parent | ca93666a2dda76b098d6b64ef338d6866ae4d077 (diff) |
axen(4): Identify the owner of some chatty printfs
ok stsp
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_axen.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/dev/usb/if_axen.c b/sys/dev/usb/if_axen.c index 325ae548e7f..8721a2d4d62 100644 --- a/sys/dev/usb/if_axen.c +++ b/sys/dev/usb/if_axen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axen.c,v 1.24 2017/01/22 10:17:39 dlg Exp $ */ +/* $OpenBSD: if_axen.c,v 1.25 2018/06/12 06:59:27 mlarkin Exp $ */ /* * Copyright (c) 2013 Yojiro UO <yuo@openbsd.org> @@ -462,7 +462,8 @@ axen_ax88179_init(struct axen_softc *sc) USETW(wval, ctl); axen_cmd(sc, AXEN_CMD_MAC_WRITE2, 2, AXEN_PHYPWR_RSTCTL, &wval); usbd_delay_ms(sc->axen_udev, 200); - printf("enable auto detach (0x%04x)\n", ctl); + printf("%s: enable auto detach (0x%04x)\n", + sc->axen_dev.dv_xname, ctl); } /* bulkin queue setting */ @@ -493,7 +494,8 @@ axen_ax88179_init(struct axen_softc *sc) qctrl.ifg = 0xff; break; default: - printf("unknown uplink bus:0x%02x\n", val); + printf("%s: unknown uplink bus:0x%02x\n", + sc->axen_dev.dv_xname, val); axen_unlock_mii(sc); return; } @@ -927,7 +929,8 @@ axen_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status) pkt_count = (u_int16_t)(rx_hdr & 0xffff); if (total_len > sc->axen_bufsz) { - printf("rxeof: too large transfer\n"); + printf("%s: rxeof: too large transfer\n", + sc->axen_dev.dv_xname); goto done; } @@ -957,7 +960,8 @@ axen_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status) do { if ((buf[0] != 0xee) || (buf[1] != 0xee)){ - printf("invalid buffer(pkt#%d), continue\n", pkt_count); + printf("%s: invalid buffer(pkt#%d), continue\n", + sc->axen_dev.dv_xname, pkt_count); ifp->if_ierrors += pkt_count; goto done; } @@ -991,7 +995,8 @@ axen_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status) /* cheksum err */ if ((pkt_hdr & AXEN_RXHDR_L3CSUM_ERR) || (pkt_hdr & AXEN_RXHDR_L4CSUM_ERR)) { - printf("checksum err (pkt#%d)\n", pkt_count); + printf("%s: checksum err (pkt#%d)\n", + sc->axen_dev.dv_xname, pkt_count); goto nextpkt; } else { m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK; |