summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_stge.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-11 05:03:11 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-11 05:03:11 +0000
commitc450a44e46615b60372c7f8e4147b73c70711c33 (patch)
tree3586d41bdb5dc9cf3df7d4aa984ff566cd84f6a7 /sys/dev/pci/if_stge.c
parent3e33bf5684527d729d6f8a0f413ae5c8fdeebaf4 (diff)
make dmesg prints closer to the rest of the drivers
Diffstat (limited to 'sys/dev/pci/if_stge.c')
-rw-r--r--sys/dev/pci/if_stge.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/sys/dev/pci/if_stge.c b/sys/dev/pci/if_stge.c
index 2deddb1af0b..bfb1b183d93 100644
--- a/sys/dev/pci/if_stge.c
+++ b/sys/dev/pci/if_stge.c
@@ -407,13 +407,11 @@ stge_attach(struct device *parent, struct device *self, void *aux)
sp = stge_lookup(pa);
if (sp == NULL) {
printf("\n");
- panic("ste_attach: impossible");
+ panic("stge_attach: impossible");
}
sc->sc_rev = PCI_REVISION(pa->pa_class);
- printf(": %s, rev. %d\n", sp->stge_name, sc->sc_rev);
-
/*
* Map the device.
*/
@@ -431,8 +429,7 @@ stge_attach(struct device *parent, struct device *self, void *aux)
sc->sc_st = iot;
sc->sc_sh = ioh;
} else {
- printf("%s: unable to map device registers\n",
- sc->sc_dev.dv_xname);
+ printf(": unable to map device registers\n");
return;
}
@@ -451,13 +448,11 @@ stge_attach(struct device *parent, struct device *self, void *aux)
* The card has lost all configuration data in
* this state, so punt.
*/
- printf("%s: unable to wake up from power state D3\n",
- sc->sc_dev.dv_xname);
+ printf(": unable to wake up from power state D3\n");
return;
}
if (pmode != 0) {
- printf("%s: waking up from power state D%d\n",
- sc->sc_dev.dv_xname, pmode);
+ printf(": waking up from power state D%d\n", pmode);
pci_conf_write(pc, pa->pa_tag, pmreg + 4, 0);
}
}
@@ -466,21 +461,20 @@ stge_attach(struct device *parent, struct device *self, void *aux)
* Map and establish our interrupt.
*/
if (pci_intr_map(pa, &ih)) {
- printf("%s: unable to map interrupt\n", sc->sc_dev.dv_xname);
+ printf(": unable to map interrupt\n");
return;
}
intrstr = pci_intr_string(pc, ih);
sc->sc_ih = pci_intr_establish(pc, ih, IPL_NET, stge_intr, sc,
sc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
- printf("%s: unable to establish interrupt",
- sc->sc_dev.dv_xname);
+ printf(": unable to establish interrupt");
if (intrstr != NULL)
printf(" at %s", intrstr);
printf("\n");
return;
}
- printf("%s: interrupting at %s\n", sc->sc_dev.dv_xname, intrstr);
+ printf(": %s, rev. %d, %s\n", sp->stge_name, sc->sc_rev, intrstr);
/*
* Allocate the control data structures, and create and load the