summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-11 02:21:29 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-11 02:21:29 +0000
commit2834a9006111e44b1e46874adf41b23a95ba8b0b (patch)
tree0fd837c7e9a4863ae7d9260d8a88f19b4ab40488 /sys
parent506f1e4998502a52c69fe70093cfd10a7b89fcd0 (diff)
cleanup dmesg output
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/ohci_pci.c11
-rw-r--r--sys/dev/pci/uhci_pci.c10
2 files changed, 10 insertions, 11 deletions
diff --git a/sys/dev/pci/ohci_pci.c b/sys/dev/pci/ohci_pci.c
index 68fd916de3e..adc8183295f 100644
--- a/sys/dev/pci/ohci_pci.c
+++ b/sys/dev/pci/ohci_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ohci_pci.c,v 1.18 2003/07/08 13:19:08 nate Exp $ */
+/* $OpenBSD: ohci_pci.c,v 1.19 2003/08/11 02:21:28 mickey Exp $ */
/* $NetBSD: ohci_pci.c,v 1.23 2002/10/02 16:51:47 thorpej Exp $ */
/*
@@ -116,7 +116,7 @@ ohci_pci_attach(struct device *parent, struct device *self, void *aux)
/* Map I/O registers */
if (pci_mapreg_map(pa, PCI_CBMEM, PCI_MAPREG_TYPE_MEM, 0,
&sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size, 0)) {
- printf("%s: can't map mem space\n", devname);
+ printf(": can't map mem space\n");
return;
}
@@ -146,17 +146,16 @@ ohci_pci_attach(struct device *parent, struct device *self, void *aux)
}
intrstr = pci_intr_string(pc, ih);
- sc->sc_ih = pci_intr_establish(pc, ih, IPL_USB, ohci_intr, sc,
- devname);
+ sc->sc_ih = pci_intr_establish(pc, ih, IPL_USB, ohci_intr, sc, devname);
if (sc->sc_ih == NULL) {
- printf("%s: couldn't establish interrupt", devname);
+ printf(": couldn't establish interrupt");
if (intrstr != NULL)
printf(" at %s", intrstr);
printf("\n");
splx(s);
return;
}
- printf(": interrupting at %s", intrstr);
+ printf(": %s", intrstr);
/* Figure out vendor for root hub descriptor. */
vendor = pci_findvendor(pa->pa_id);
diff --git a/sys/dev/pci/uhci_pci.c b/sys/dev/pci/uhci_pci.c
index 5194af945d4..6b1a6f070ad 100644
--- a/sys/dev/pci/uhci_pci.c
+++ b/sys/dev/pci/uhci_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci_pci.c,v 1.14 2003/07/08 13:19:08 nate Exp $ */
+/* $OpenBSD: uhci_pci.c,v 1.15 2003/08/11 02:21:28 mickey Exp $ */
/* $NetBSD: uhci_pci.c,v 1.24 2002/10/02 16:51:58 thorpej Exp $ */
/*
@@ -110,7 +110,7 @@ uhci_pci_attach(struct device *parent, struct device *self, void *aux)
/* Map I/O registers */
if (pci_mapreg_map(pa, PCI_CBIO, PCI_MAPREG_TYPE_IO, 0,
&sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size, 0)) {
- printf("%s: can't map i/o space\n", devname);
+ printf(": can't map i/o space\n");
return;
}
@@ -128,20 +128,20 @@ uhci_pci_attach(struct device *parent, struct device *self, void *aux)
/* Map and establish the interrupt. */
if (pci_intr_map(pa, &ih)) {
- printf("%s: couldn't map interrupt\n", devname);
+ printf(": couldn't map interrupt\n");
return;
}
intrstr = pci_intr_string(pc, ih);
sc->sc_ih = pci_intr_establish(pc, ih, IPL_USB, uhci_intr, sc,
devname);
if (sc->sc_ih == NULL) {
- printf(": couldn't establish interrupt", devname);
+ printf(": couldn't establish interrupt");
if (intrstr != NULL)
printf(" at %s", intrstr);
printf("\n");
return;
}
- printf(": interrupting at %s\n", intrstr);
+ printf(": %s\n", intrstr);
/* Set LEGSUP register to its default value. */
pci_conf_write(pc, tag, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN);