diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-10 14:49:02 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-10 14:49:02 +0000 |
commit | b36c9f662da72870bf22394171cf74a54a7f8e39 (patch) | |
tree | 2641ee87f027aa978ea64bc95fe33bcf03d1d500 /sys/dev/usb/uvisor.c | |
parent | 2bca40ff67d19c516b42ca70c28870f34f7388dc (diff) |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg
for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
Diffstat (limited to 'sys/dev/usb/uvisor.c')
-rw-r--r-- | sys/dev/usb/uvisor.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/uvisor.c b/sys/dev/usb/uvisor.c index 5b2fac493a4..d7b9666fc9c 100644 --- a/sys/dev/usb/uvisor.c +++ b/sys/dev/usb/uvisor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvisor.c,v 1.31 2007/06/10 10:53:49 mbalmer Exp $ */ +/* $OpenBSD: uvisor.c,v 1.32 2007/06/10 14:49:01 mbalmer Exp $ */ /* $NetBSD: uvisor.c,v 1.21 2003/08/03 21:59:26 nathanw Exp $ */ /* @@ -230,7 +230,7 @@ uvisor_attach(struct device *parent, struct device *self, void *aux) struct uvisor_palm_connection_info palmconinfo; usb_endpoint_descriptor_t *ed; char *devinfop; - char *devname = USBDEVNAME(sc->sc_dev); + char *devname = sc->sc_dev.dv_xname; int i, j, hasin, hasout, port; usbd_status err; struct ucom_attach_args uca; @@ -261,7 +261,7 @@ uvisor_attach(struct device *parent, struct device *self, void *aux) if ((sc->sc_flags & (VISOR | PALM4)) == 0) { printf("%s: device is neither visor nor palm\n", - USBDEVNAME(sc->sc_dev)); + sc->sc_dev.dv_xname); goto bad; } @@ -281,7 +281,7 @@ uvisor_attach(struct device *parent, struct device *self, void *aux) err = uvisor_init(sc, &coninfo, &palmconinfo); if (err) { - printf("%s: init failed, %s\n", USBDEVNAME(sc->sc_dev), + printf("%s: init failed, %s\n", sc->sc_dev.dv_xname, usbd_errstr(err)); goto bad; } @@ -338,7 +338,7 @@ uvisor_attach(struct device *parent, struct device *self, void *aux) ucomprint, ucomsubmatch); else printf("%s: no proper endpoints for port %d (%d,%d)\n", - USBDEVNAME(sc->sc_dev), port, hasin, hasout); + sc->sc_dev.dv_xname, port, hasin, hasout); } } else { sc->sc_numcon = palmconinfo.num_ports; |