summaryrefslogtreecommitdiff
path: root/sys/dev/usb/moscom.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-10 14:49:02 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-10 14:49:02 +0000
commitb36c9f662da72870bf22394171cf74a54a7f8e39 (patch)
tree2641ee87f027aa978ea64bc95fe33bcf03d1d500 /sys/dev/usb/moscom.c
parent2bca40ff67d19c516b42ca70c28870f34f7388dc (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/moscom.c')
-rw-r--r--sys/dev/usb/moscom.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/moscom.c b/sys/dev/usb/moscom.c
index 0dce335ceb5..eb1e77790a6 100644
--- a/sys/dev/usb/moscom.c
+++ b/sys/dev/usb/moscom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: moscom.c,v 1.6 2007/06/10 10:53:48 mbalmer Exp $ */
+/* $OpenBSD: moscom.c,v 1.7 2007/06/10 14:49:00 mbalmer Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -195,12 +195,12 @@ moscom_attach(struct device *parent, struct device *self, void *aux)
bzero(&uca, sizeof(uca));
sc->sc_udev = uaa->device;
devinfop = usbd_devinfo_alloc(uaa->device, 0);
- printf("\n%s: %s\n", USBDEVNAME(sc->sc_dev), devinfop);
+ printf("\n%s: %s\n", sc->sc_dev.dv_xname, devinfop);
usbd_devinfo_free(devinfop);
if (usbd_set_config_index(sc->sc_udev, MOSCOM_CONFIG_NO, 1) != 0) {
printf("%s: could not set configuration no\n",
- USBDEVNAME(sc->sc_dev));
+ sc->sc_dev.dv_xname);
sc->sc_dying = 1;
return;
}
@@ -210,7 +210,7 @@ moscom_attach(struct device *parent, struct device *self, void *aux)
&sc->sc_iface);
if (error != 0) {
printf("%s: could not get interface handle\n",
- USBDEVNAME(sc->sc_dev));
+ sc->sc_dev.dv_xname);
sc->sc_dying = 1;
return;
}
@@ -222,7 +222,7 @@ moscom_attach(struct device *parent, struct device *self, void *aux)
ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);
if (ed == NULL) {
printf("%s: no endpoint descriptor found for %d\n",
- USBDEVNAME(sc->sc_dev), i);
+ sc->sc_dev.dv_xname, i);
sc->sc_dying = 1;
return;
}
@@ -236,7 +236,7 @@ moscom_attach(struct device *parent, struct device *self, void *aux)
}
if (uca.bulkin == -1 || uca.bulkout == -1) {
- printf("%s: missing endpoint\n", USBDEVNAME(sc->sc_dev));
+ printf("%s: missing endpoint\n", sc->sc_dev.dv_xname);
sc->sc_dying = 1;
return;
}