summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccbb
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-06-03 18:58:48 +0000
committerimp <imp@FreeBSD.org>2006-06-03 18:58:48 +0000
commit6fe4eb5fdefb9d305a7a05ec9c87950f7e07b0c0 (patch)
tree2382fa631a5d05bcc5036bf7bd51a9b5e6c4975b /sys/dev/pccbb
parent4c81cb92a30abe28237b5cb3559f69c1d446c656 (diff)
downloadFreeBSD-src-6fe4eb5fdefb9d305a7a05ec9c87950f7e07b0c0.zip
FreeBSD-src-6fe4eb5fdefb9d305a7a05ec9c87950f7e07b0c0.tar.gz
Fix a couple printf's to be properly terminated.
Use a better name for the cbb thread.
Diffstat (limited to 'sys/dev/pccbb')
-rw-r--r--sys/dev/pccbb/pccbb_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pccbb/pccbb_pci.c b/sys/dev/pccbb/pccbb_pci.c
index fc9435d..736b269 100644
--- a/sys/dev/pccbb/pccbb_pci.c
+++ b/sys/dev/pccbb/pccbb_pci.c
@@ -392,13 +392,13 @@ cbb_pci_attach(device_t brdev)
sc->irq_res = bus_alloc_resource_any(brdev, SYS_RES_IRQ, &rid,
RF_SHAREABLE | RF_ACTIVE);
if (sc->irq_res == NULL) {
- printf("cbb: Unable to map IRQ...\n");
+ device_printf(brdev, "Unable to map IRQ...\n");
goto err;
}
if (bus_setup_intr(brdev, sc->irq_res, INTR_TYPE_AV | INTR_MPSAFE,
cbb_intr, sc, &sc->intrhand)) {
- device_printf(brdev, "couldn't establish interrupt");
+ device_printf(brdev, "couldn't establish interrupt\n");
goto err;
}
@@ -419,7 +419,7 @@ cbb_pci_attach(device_t brdev)
/* Start the thread */
if (kthread_create(cbb_event_thread, sc, &sc->event_thread, 0, 0,
- "%s", device_get_nameunit(brdev))) {
+ "%s event thread", device_get_nameunit(brdev))) {
device_printf(brdev, "unable to create event thread.\n");
panic("cbb_create_event_thread");
}
OpenPOWER on IntegriCloud