diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2004-04-07 00:40:05 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2004-04-07 00:40:05 +0000 |
commit | 20866b81a98d78b9c0794896b2d6a3cea711f468 (patch) | |
tree | fff3fc974d9b02cd7e723d538d390eb99c45a7ac /sys/dev/pci | |
parent | 3b8251e750999f858970e2719f6d6e71c41aec17 (diff) |
Clean up printf's per deraadt@. Kill panic in mpt_pci_attach per mickey@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/mpt_pci.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/dev/pci/mpt_pci.c b/sys/dev/pci/mpt_pci.c index c24c1f25d5b..4cf0af57849 100644 --- a/sys/dev/pci/mpt_pci.c +++ b/sys/dev/pci/mpt_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpt_pci.c,v 1.2 2004/03/06 03:59:29 krw Exp $ */ +/* $OpenBSD: mpt_pci.c,v 1.3 2004/04/07 00:40:04 marco Exp $ */ /* $NetBSD: mpt_pci.c,v 1.2 2003/07/14 15:47:26 lukem Exp $ */ /* @@ -167,8 +167,8 @@ mpt_pci_attach(struct device *parent, struct device *self, void *aux) mpp = mpt_pci_lookup(pa); if (mpp == NULL) { - printf("\n"); - panic("mpt_pci_attach"); + printf(": mpt_pci_lookup failed\n"); + return; } psc->sc_pc = pa->pa_pc; @@ -196,8 +196,7 @@ mpt_pci_attach(struct device *parent, struct device *self, void *aux) mpt->sc_st = memt; mpt->sc_sh = memh; } else { - printf("%s: unable to map device registers\n", - mpt->mpt_dev.dv_xname); + printf(": unable to map device registers\n"); return; } @@ -222,8 +221,7 @@ mpt_pci_attach(struct device *parent, struct device *self, void *aux) * Map and establish our interrupt. */ if (pci_intr_map(pa, &ih) != 0) { - printf("%s: unable to map interrupt\n", - mpt->mpt_dev.dv_xname); + printf(": unable to map interrupt\n"); return; } intrstr = pci_intr_string(pa->pa_pc, ih); @@ -243,8 +241,7 @@ mpt_pci_attach(struct device *parent, struct device *self, void *aux) /* Allocate DMA memory. */ if (mpt_dma_mem_alloc(mpt) != 0) { - printf("%s: unable to allocate DMA memory\n", - mpt->mpt_dev.dv_xname); + printf(": unable to allocate DMA memory\n"); return; } |