diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 05:12:41 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 05:12:41 +0000 |
commit | b3067fd524234e263e58b215d0fb24d414bf1c34 (patch) | |
tree | 5c1576265dded5700ab387af81051fabd39f3396 /sys/arch/arm32/mainbus/wd.c | |
parent | 9ee95b4b405b050512cf782b508d774f4601a6b5 (diff) |
panic prints a newline for you, don't do it in the panic string
Diffstat (limited to 'sys/arch/arm32/mainbus/wd.c')
-rw-r--r-- | sys/arch/arm32/mainbus/wd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/arm32/mainbus/wd.c b/sys/arch/arm32/mainbus/wd.c index 04b78437d28..c1540197729 100644 --- a/sys/arch/arm32/mainbus/wd.c +++ b/sys/arch/arm32/mainbus/wd.c @@ -263,7 +263,7 @@ wdcattach(parent, self, aux) wdc->sc_ih.ih_level = IPL_BIO; wdc->sc_ih.ih_name = "wdc"; if (irq_claim(mb->mb_irq, &wdc->sc_ih)) - panic("Cannot claim IRQ %d for wdc%d\n", mb->mb_irq, parent->dv_unit); + panic("Cannot claim IRQ %d for wdc%d", mb->mb_irq, parent->dv_unit); for (wa.wa_drive = 0; wa.wa_drive < 2; wa.wa_drive++) (void)config_found(self, (void *)&wa, wdprint); @@ -680,7 +680,7 @@ loop: /* isa_dmastart(bp->b_flags & B_READ, bp->b_data + wd->sc_skip, wd->sc_nbytes, wdc->sc_drq);*/ - panic("wd cannot do DMA yet\n"); + panic("wd cannot do DMA yet"); break; case WDM_PIOMULTI: command = (bp->b_flags & B_READ) ? @@ -727,7 +727,7 @@ loop: outsw(wdc->sc_iobase+wd_data, (u_int) bp->b_data + wd->sc_skip, wd->sc_nbytes >> 1); else - panic("wd cannot do 32 bit transfers\n"); + panic("wd cannot do 32 bit transfers"); /* outsl(wdc->sc_iobase+wd_data, bp->b_data + wd->sc_skip, wd->sc_nbytes >> 2);*/ } @@ -783,7 +783,7 @@ wdcintr(arg) /* Turn off the DMA channel and unbounce the buffer. */ if (wd->sc_mode == WDM_DMA) - panic("wd cannot do DMA\n"); + panic("wd cannot do DMA"); /* isa_dmadone(bp->b_flags & B_READ, bp->b_data + wd->sc_skip, wd->sc_nbytes, wdc->sc_drq);*/ @@ -828,7 +828,7 @@ wdcintr(arg) insw(wdc->sc_iobase+wd_data, (u_int) bp->b_data + wd->sc_skip, wd->sc_nbytes >> 1); else - panic("wd cannot do 32 bit transfers\n"); + panic("wd cannot do 32 bit transfers"); /* insl(wdc->sc_iobase+wd_data, bp->b_data + wd->sc_skip, wd->sc_nbytes >> 2);*/ } |