diff options
Diffstat (limited to 'sys/arch')
142 files changed, 389 insertions, 389 deletions
diff --git a/sys/arch/alpha/alpha/dec_2100_a50.c b/sys/arch/alpha/alpha/dec_2100_a50.c index 7f1e1cc7f01..d684c8559a9 100644 --- a/sys/arch/alpha/alpha/dec_2100_a50.c +++ b/sys/arch/alpha/alpha/dec_2100_a50.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dec_2100_a50.c,v 1.7 1997/01/24 19:56:22 niklas Exp $ */ +/* $OpenBSD: dec_2100_a50.c,v 1.8 1999/01/11 05:10:58 millert Exp $ */ /* $NetBSD: dec_2100_a50.c,v 1.18 1996/11/25 03:59:19 cgd Exp $ */ /* @@ -136,7 +136,7 @@ dec_2100_a50_cons_init() printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type); printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot); - panic("consinit: unknown console type %d\n", + panic("consinit: unknown console type %d", ctb->ctb_term_type); } } diff --git a/sys/arch/alpha/alpha/dec_axppci_33.c b/sys/arch/alpha/alpha/dec_axppci_33.c index 4353ae5c120..078abb94a36 100644 --- a/sys/arch/alpha/alpha/dec_axppci_33.c +++ b/sys/arch/alpha/alpha/dec_axppci_33.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dec_axppci_33.c,v 1.7 1997/11/04 22:07:42 niklas Exp $ */ +/* $OpenBSD: dec_axppci_33.c,v 1.8 1999/01/11 05:10:59 millert Exp $ */ /* $NetBSD: dec_axppci_33.c,v 1.16 1996/11/25 03:59:20 cgd Exp $ */ /* @@ -121,7 +121,7 @@ dec_axppci_33_cons_init() printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type); printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot); - panic("consinit: unknown console type %d\n", + panic("consinit: unknown console type %d", ctb->ctb_term_type); } } diff --git a/sys/arch/alpha/alpha/dec_eb164.c b/sys/arch/alpha/alpha/dec_eb164.c index 2a00f6ed330..89c248be0c6 100644 --- a/sys/arch/alpha/alpha/dec_eb164.c +++ b/sys/arch/alpha/alpha/dec_eb164.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dec_eb164.c,v 1.2 1997/11/10 15:46:23 niklas Exp $ */ +/* $OpenBSD: dec_eb164.c,v 1.3 1999/01/11 05:10:59 millert Exp $ */ /* $NetBSD: dec_eb164.c,v 1.4 1996/11/25 03:59:21 cgd Exp $ */ /* @@ -116,7 +116,7 @@ dec_eb164_cons_init() printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type); printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot); - panic("consinit: unknown console type %d\n", + panic("consinit: unknown console type %d", ctb->ctb_term_type); } } diff --git a/sys/arch/alpha/alpha/dec_kn20aa.c b/sys/arch/alpha/alpha/dec_kn20aa.c index 91c568d789e..bbb69cd47a4 100644 --- a/sys/arch/alpha/alpha/dec_kn20aa.c +++ b/sys/arch/alpha/alpha/dec_kn20aa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dec_kn20aa.c,v 1.6 1997/01/24 19:56:30 niklas Exp $ */ +/* $OpenBSD: dec_kn20aa.c,v 1.7 1999/01/11 05:10:59 millert Exp $ */ /* $NetBSD: dec_kn20aa.c,v 1.16 1996/11/25 03:59:22 cgd Exp $ */ /* @@ -119,7 +119,7 @@ dec_kn20aa_cons_init() printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type); printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot); - panic("consinit: unknown console type %d\n", + panic("consinit: unknown console type %d", ctb->ctb_term_type); } } diff --git a/sys/arch/alpha/alpha/interrupt.c b/sys/arch/alpha/alpha/interrupt.c index 361856531e7..dc8170b6e9b 100644 --- a/sys/arch/alpha/alpha/interrupt.c +++ b/sys/arch/alpha/alpha/interrupt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interrupt.c,v 1.6 1997/01/24 19:56:34 niklas Exp $ */ +/* $OpenBSD: interrupt.c,v 1.7 1999/01/11 05:10:59 millert Exp $ */ /* $NetBSD: interrupt.c,v 1.14 1996/11/13 22:20:54 cgd Exp $ */ /* @@ -83,7 +83,7 @@ interrupt(a0, a1, a2, framep) * 0 Interprocessor interrupt * 4 Performance counter */ - panic("unexpected interrupt: type 0x%lx, vec 0x%lx\n", + panic("unexpected interrupt: type 0x%lx, vec 0x%lx", a0, a1); } } @@ -210,7 +210,7 @@ badaddr(addr, size) break; default: - panic("badaddr: invalid size (%ld)\n", size); + panic("badaddr: invalid size (%ld)", size); } alpha_mb(); diff --git a/sys/arch/alpha/isa/isafcns_jensen.c b/sys/arch/alpha/isa/isafcns_jensen.c index d702ab51f03..0588d41d7a1 100644 --- a/sys/arch/alpha/isa/isafcns_jensen.c +++ b/sys/arch/alpha/isa/isafcns_jensen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isafcns_jensen.c,v 1.4 1996/10/30 22:39:38 niklas Exp $ */ +/* $OpenBSD: isafcns_jensen.c,v 1.5 1999/01/11 05:11:02 millert Exp $ */ /* $NetBSD: isafcns_jensen.c,v 1.4 1996/10/13 02:59:54 christos Exp $ */ /* @@ -88,7 +88,7 @@ jensen_inw(ioaddr) rval = ((val) >> (8 * offset)) & 0xffff; rval = val & 0xffff; -panic("inw(0x%x) => 0x%x @ %p => 0x%x\n", ioaddr, val, port, rval); +panic("inw(0x%x) => 0x%x @ %p => 0x%x", ioaddr, val, port, rval); return rval; } diff --git a/sys/arch/alpha/pci/pci_2100_a50.c b/sys/arch/alpha/pci/pci_2100_a50.c index fd864d5c80e..3e65cc73e58 100644 --- a/sys/arch/alpha/pci/pci_2100_a50.c +++ b/sys/arch/alpha/pci/pci_2100_a50.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_2100_a50.c,v 1.11 1998/07/01 05:32:37 angelos Exp $ */ +/* $OpenBSD: pci_2100_a50.c,v 1.12 1999/01/11 05:11:02 millert Exp $ */ /* $NetBSD: pci_2100_a50.c,v 1.12 1996/11/13 21:13:29 cgd Exp $ */ /* @@ -139,7 +139,7 @@ dec_2100_a50_intr_map(acv, bustag, buspin, line, ihp) break; #ifdef DIAGNOSTIC default: /* XXX gcc -Wuninitialized */ - panic("dec_2100_a50_intr_map bogus PCI pin %d\n", + panic("dec_2100_a50_intr_map bogus PCI pin %d", buspin); #endif }; @@ -159,7 +159,7 @@ dec_2100_a50_intr_map(acv, bustag, buspin, line, ihp) break; #ifdef DIAGNOSTIC default: /* XXX gcc -Wuninitialized */ - panic("dec_2100_a50_intr_map bogus PCI pin %d\n", + panic("dec_2100_a50_intr_map bogus PCI pin %d", buspin); #endif }; @@ -179,7 +179,7 @@ dec_2100_a50_intr_map(acv, bustag, buspin, line, ihp) break; #ifdef DIAGNOSTIC default: /* XXX gcc -Wuninitialized */ - panic("dec_2100_a50_intr_map bogus PCI pin %d\n", + panic("dec_2100_a50_intr_map bogus PCI pin %d", buspin); #endif }; diff --git a/sys/arch/alpha/pci/pci_axppci_33.c b/sys/arch/alpha/pci/pci_axppci_33.c index 56464a68a33..8c30f0c432e 100644 --- a/sys/arch/alpha/pci/pci_axppci_33.c +++ b/sys/arch/alpha/pci/pci_axppci_33.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_axppci_33.c,v 1.10 1998/07/01 05:32:38 angelos Exp $ */ +/* $OpenBSD: pci_axppci_33.c,v 1.11 1999/01/11 05:11:03 millert Exp $ */ /* $NetBSD: pci_axppci_33.c,v 1.10 1996/11/13 21:13:29 cgd Exp $ */ /* @@ -138,7 +138,7 @@ dec_axppci_33_intr_map(lcv, bustag, buspin, line, ihp) break; #ifdef DIAGNOSTIC default: /* XXX gcc -Wuninitialized */ - panic("dec_axppci_33_intr_map bogus PCI pin %d\n", + panic("dec_axppci_33_intr_map bogus PCI pin %d", buspin); #endif }; @@ -158,7 +158,7 @@ dec_axppci_33_intr_map(lcv, bustag, buspin, line, ihp) break; #ifdef DIAGNOSTIC default: /* XXX gcc -Wuninitialized */ - panic("dec_axppci_33_intr_map bogus PCI pin %d\n", + panic("dec_axppci_33_intr_map bogus PCI pin %d", buspin); #endif }; @@ -178,7 +178,7 @@ dec_axppci_33_intr_map(lcv, bustag, buspin, line, ihp) break; #ifdef DIAGNOSTIC default: /* XXX gcc -Wuninitialized */ - panic("dec_axppci_33_intr_map bogus PCI pin %d\n", + panic("dec_axppci_33_intr_map bogus PCI pin %d", buspin); #endif }; diff --git a/sys/arch/alpha/pci/pci_eb164.c b/sys/arch/alpha/pci/pci_eb164.c index c97464fae51..6913840c9da 100644 --- a/sys/arch/alpha/pci/pci_eb164.c +++ b/sys/arch/alpha/pci/pci_eb164.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_eb164.c,v 1.2 1998/07/01 05:32:40 angelos Exp $ */ +/* $OpenBSD: pci_eb164.c,v 1.3 1999/01/11 05:11:03 millert Exp $ */ /* $NetBSD: pci_eb164.c,v 1.4 1996/11/25 03:47:05 cgd Exp $ */ /* @@ -193,7 +193,7 @@ dec_eb164_intr_map(ccv, bustag, buspin, line, ihp) } if (line > EB164_MAX_IRQ) - panic("dec_eb164_map_int: eb164_irq too large (%d)\n", + panic("dec_eb164_map_int: eb164_irq too large (%d)", line); *ihp = line; @@ -211,7 +211,7 @@ dec_eb164_intr_string(ccv, ih) static char irqstr[15]; /* 11 + 2 + NULL + sanity */ if (ih > EB164_MAX_IRQ) - panic("dec_eb164_intr_string: bogus eb164 IRQ 0x%x\n", ih); + panic("dec_eb164_intr_string: bogus eb164 IRQ 0x%x", ih); sprintf(irqstr, "eb164 irq %d", ih); return (irqstr); } @@ -227,7 +227,7 @@ dec_eb164_intr_establish(ccv, ih, level, func, arg, name) void *cookie; if (ih > EB164_MAX_IRQ) - panic("dec_eb164_intr_establish: bogus eb164 IRQ 0x%x\n", ih); + panic("dec_eb164_intr_establish: bogus eb164 IRQ 0x%x", ih); cookie = alpha_shared_intr_establish(eb164_pci_intr, ih, IST_LEVEL, level, func, arg, name); @@ -286,7 +286,7 @@ eb164_iointr(framep, vec) if (vec >= 0x900) { if (vec >= 0x900 + (EB164_MAX_IRQ << 4)) - panic("eb164_iointr: vec 0x%x out of range\n", vec); + panic("eb164_iointr: vec 0x%x out of range", vec); irq = (vec - 0x900) >> 4; #ifdef EVCNT_COUNTERS @@ -313,7 +313,7 @@ eb164_iointr(framep, vec) return; } #endif - panic("eb164_iointr: weird vec 0x%x\n", vec); + panic("eb164_iointr: weird vec 0x%x", vec); } #if 0 /* THIS DOES NOT WORK! see pci_eb164_intr.S. */ diff --git a/sys/arch/alpha/pci/pci_kn20aa.c b/sys/arch/alpha/pci/pci_kn20aa.c index 4c1fa0c0f82..0efdc2926ff 100644 --- a/sys/arch/alpha/pci/pci_kn20aa.c +++ b/sys/arch/alpha/pci/pci_kn20aa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_kn20aa.c,v 1.10 1998/07/01 05:32:41 angelos Exp $ */ +/* $OpenBSD: pci_kn20aa.c,v 1.11 1999/01/11 05:11:03 millert Exp $ */ /* $NetBSD: pci_kn20aa.c,v 1.21 1996/11/17 02:05:27 cgd Exp $ */ /* @@ -167,7 +167,7 @@ dec_kn20aa_intr_map(ccv, bustag, buspin, line, ihp) kn20aa_irq += buspin - 1; if (kn20aa_irq > KN20AA_MAX_IRQ) - panic("pci_kn20aa_map_int: kn20aa_irq too large (%d)\n", + panic("pci_kn20aa_map_int: kn20aa_irq too large (%d)", kn20aa_irq); *ihp = kn20aa_irq; @@ -182,7 +182,7 @@ dec_kn20aa_intr_string(ccv, ih) static char irqstr[15]; /* 11 + 2 + NULL + sanity */ if (ih > KN20AA_MAX_IRQ) - panic("dec_kn20aa_intr_string: bogus kn20aa IRQ 0x%x\n", ih); + panic("dec_kn20aa_intr_string: bogus kn20aa IRQ 0x%x", ih); sprintf(irqstr, "kn20aa irq %ld", ih); return (irqstr); @@ -199,7 +199,7 @@ dec_kn20aa_intr_establish(ccv, ih, level, func, arg, name) void *cookie; if (ih > KN20AA_MAX_IRQ) - panic("dec_kn20aa_intr_establish: bogus kn20aa IRQ 0x%x\n", + panic("dec_kn20aa_intr_establish: bogus kn20aa IRQ 0x%x", ih); cookie = alpha_shared_intr_establish(kn20aa_pci_intr, ih, IST_LEVEL, @@ -227,7 +227,7 @@ kn20aa_iointr(framep, vec) if (vec >= 0x900) { if (vec >= 0x900 + (KN20AA_MAX_IRQ << 4)) - panic("kn20aa_iointr: vec 0x%x out of range\n", vec); + panic("kn20aa_iointr: vec 0x%x out of range", vec); irq = (vec - 0x900) >> 4; #ifdef EVCNT_COUNTERS @@ -253,7 +253,7 @@ kn20aa_iointr(framep, vec) return; } #endif - panic("kn20aa_iointr: weird vec 0x%x\n", vec); + panic("kn20aa_iointr: weird vec 0x%x", vec); } void diff --git a/sys/arch/alpha/pci/sio_pic.c b/sys/arch/alpha/pci/sio_pic.c index 041f87de3d4..7bdad3f9d38 100644 --- a/sys/arch/alpha/pci/sio_pic.c +++ b/sys/arch/alpha/pci/sio_pic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_pic.c,v 1.12 1998/07/01 05:32:42 angelos Exp $ */ +/* $OpenBSD: sio_pic.c,v 1.13 1999/01/11 05:11:03 millert Exp $ */ /* $NetBSD: sio_pic.c,v 1.16 1996/11/17 02:05:26 cgd Exp $ */ /* @@ -426,7 +426,7 @@ sio_intr_string(v, irq) static char irqstr[12]; /* 8 + 2 + NULL + sanity */ if (irq == 0 || irq >= ICU_LEN || irq == 2) - panic("sio_intr_string: bogus isa irq 0x%x\n", irq); + panic("sio_intr_string: bogus isa irq 0x%x", irq); sprintf(irqstr, "isa irq %d", irq); return (irqstr); diff --git a/sys/arch/alpha/pci/tga_bt485.c b/sys/arch/alpha/pci/tga_bt485.c index ead6223af5a..95ee3543859 100644 --- a/sys/arch/alpha/pci/tga_bt485.c +++ b/sys/arch/alpha/pci/tga_bt485.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tga_bt485.c,v 1.4 1997/01/24 19:58:01 niklas Exp $ */ +/* $OpenBSD: tga_bt485.c,v 1.5 1999/01/11 05:11:03 millert Exp $ */ /* $NetBSD: tga_bt485.c,v 1.4 1996/11/13 21:13:35 cgd Exp $ */ /* @@ -432,7 +432,7 @@ tga_bt485_wr_d(tgaregs, btreg, val) { if (btreg > BT485_REG_MAX) - panic("tga_bt485_wr_d: reg %d out of range\n", btreg); + panic("tga_bt485_wr_d: reg %d out of range", btreg); tgaregs[TGA_REG_EPDR] = (btreg << 9) | (0 << 8 ) | val; /* XXX */ alpha_mb(); @@ -446,7 +446,7 @@ tga_bt485_rd_d(tgaregs, btreg) tga_reg_t rdval; if (btreg > BT485_REG_MAX) - panic("tga_bt485_rd_d: reg %d out of range\n", btreg); + panic("tga_bt485_rd_d: reg %d out of range", btreg); tgaregs[TGA_REG_EPSR] = (btreg << 1) | 0x1; /* XXX */ alpha_mb(); diff --git a/sys/arch/alpha/tc/ioasic.c b/sys/arch/alpha/tc/ioasic.c index 96e49ffb553..b8eb6dff7f2 100644 --- a/sys/arch/alpha/tc/ioasic.c +++ b/sys/arch/alpha/tc/ioasic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioasic.c,v 1.6 1997/01/24 19:58:13 niklas Exp $ */ +/* $OpenBSD: ioasic.c,v 1.7 1999/01/11 05:11:04 millert Exp $ */ /* $NetBSD: ioasic.c,v 1.10 1996/12/05 01:39:41 cgd Exp $ */ /* @@ -283,7 +283,7 @@ ioasic_intrnull(val) void *val; { - panic("ioasic_intrnull: uncaught IOASIC intr for cookie %ld\n", + panic("ioasic_intrnull: uncaught IOASIC intr for cookie %ld", (u_long)val); } diff --git a/sys/arch/alpha/tc/tc_3000_300.c b/sys/arch/alpha/tc/tc_3000_300.c index 890bfa6fc7f..e5eaf6be79b 100644 --- a/sys/arch/alpha/tc/tc_3000_300.c +++ b/sys/arch/alpha/tc/tc_3000_300.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_3000_300.c,v 1.5 1996/10/30 22:41:16 niklas Exp $ */ +/* $OpenBSD: tc_3000_300.c,v 1.6 1999/01/11 05:11:04 millert Exp $ */ /* $NetBSD: tc_3000_300.c,v 1.12 1996/10/13 03:00:37 christos Exp $ */ /* @@ -178,7 +178,7 @@ tc_3000_300_intrnull(val) void *val; { - panic("tc_3000_300_intrnull: uncaught TC intr for cookie %ld\n", + panic("tc_3000_300_intrnull: uncaught TC intr for cookie %ld", (u_long)val); } diff --git a/sys/arch/alpha/tc/tc_3000_500.c b/sys/arch/alpha/tc/tc_3000_500.c index 61cfdc95128..68a38f6a848 100644 --- a/sys/arch/alpha/tc/tc_3000_500.c +++ b/sys/arch/alpha/tc/tc_3000_500.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_3000_500.c,v 1.6 1997/01/24 19:58:18 niklas Exp $ */ +/* $OpenBSD: tc_3000_500.c,v 1.7 1999/01/11 05:11:04 millert Exp $ */ /* $NetBSD: tc_3000_500.c,v 1.12 1996/11/15 23:59:00 cgd Exp $ */ /* @@ -176,7 +176,7 @@ tc_3000_500_intrnull(val) void *val; { - panic("tc_3000_500_intrnull: uncaught TC intr for cookie %ld\n", + panic("tc_3000_500_intrnull: uncaught TC intr for cookie %ld", (u_long)val); } diff --git a/sys/arch/alpha/tc/tcds.c b/sys/arch/alpha/tc/tcds.c index 1ff43839c7c..015d82da5c7 100644 --- a/sys/arch/alpha/tc/tcds.c +++ b/sys/arch/alpha/tc/tcds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcds.c,v 1.7 1997/01/24 19:58:22 niklas Exp $ */ +/* $OpenBSD: tcds.c,v 1.8 1999/01/11 05:11:05 millert Exp $ */ /* $NetBSD: tcds.c,v 1.16 1996/12/05 01:39:45 cgd Exp $ */ /* @@ -274,7 +274,7 @@ tcds_intrnull(val) void *val; { - panic("tcds_intrnull: uncaught TCDS intr for cookie %ld\n", + panic("tcds_intrnull: uncaught TCDS intr for cookie %ld", (u_long)val); } diff --git a/sys/arch/amiga/amiga/pmap.c b/sys/arch/amiga/amiga/pmap.c index 930eaf565b4..4f76f86c587 100644 --- a/sys/arch/amiga/amiga/pmap.c +++ b/sys/arch/amiga/amiga/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.11 1998/03/30 18:56:10 niklas Exp $ */ +/* $OpenBSD: pmap.c,v 1.12 1999/01/11 05:11:05 millert Exp $ */ /* $NetBSD: pmap.c,v 1.39 1997/06/10 18:26:41 veego Exp $ */ /* @@ -495,7 +495,7 @@ pmap_init(phys_start, phys_end) addr = amigahwaddr; (void)vm_map_find(kernel_map, NULL, 0, &addr, ptoa(namigahwpg), FALSE); if (addr != amigahwaddr) - panic("pmap_init: bogons in the VM system!\n"); + panic("pmap_init: bogons in the VM system!"); addr = (vm_offset_t)Sysmap; vm_object_reference(kernel_object); @@ -507,7 +507,7 @@ pmap_init(phys_start, phys_end) * page table map. Need to adjust pmap_size() in amiga_init.c. */ if (addr != (vm_offset_t)Sysmap) - panic("pmap_init: bogons in the VM system!\n"); + panic("pmap_init: bogons in the VM system!"); #ifdef DEBUG if (pmapdebug & PDB_INIT) { printf("pmap_init: Sysseg %p, Sysmap %p, Sysptmap %p\n", diff --git a/sys/arch/amiga/dev/sbic.c b/sys/arch/amiga/dev/sbic.c index fd7d3f6f845..9a26fc3fcb5 100644 --- a/sys/arch/amiga/dev/sbic.c +++ b/sys/arch/amiga/dev/sbic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbic.c,v 1.9 1998/03/01 12:52:27 niklas Exp $ */ +/* $OpenBSD: sbic.c,v 1.10 1999/01/11 05:11:07 millert Exp $ */ /* $NetBSD: sbic.c,v 1.28 1996/10/13 03:07:29 christos Exp $ */ /* @@ -2043,7 +2043,7 @@ sbicmsgin(dev) !(asr & SBIC_ASR_DBR|SBIC_ASR_INT) ) GET_SBIC_asr(regs, asr); if( asr & SBIC_ASR_DBR ) - panic("msgin: jammed again!\n"); + panic("msgin: jammed again!"); GET_SBIC_csr(regs, csr); CSR_TRACE('e',csr,asr,dev->target); if( csr & 0x07 != MESG_OUT_PHASE ) { diff --git a/sys/arch/arc/algor/algorbus.c b/sys/arch/arc/algor/algorbus.c index b3dda7ae362..bcf53ac9323 100644 --- a/sys/arch/arc/algor/algorbus.c +++ b/sys/arch/arc/algor/algorbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: algorbus.c,v 1.5 1998/03/16 09:38:25 pefo Exp $ */ +/* $OpenBSD: algorbus.c,v 1.6 1999/01/11 05:11:09 millert Exp $ */ /* * Copyright (c) 1996, 1997, 1998 Per Fogelstrom, Opsycon AB @@ -398,7 +398,7 @@ int algor_intrnull(val) void *val; { - panic("uncaught ALGOR intr for slot %d\n", val); + panic("uncaught ALGOR intr for slot %d", val); } /* diff --git a/sys/arch/arc/dev/if_sn.c b/sys/arch/arc/dev/if_sn.c index d418ff3624c..0028e297a33 100644 --- a/sys/arch/arc/dev/if_sn.c +++ b/sys/arch/arc/dev/if_sn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sn.c,v 1.10 1997/08/02 09:14:13 deraadt Exp $ */ +/* $OpenBSD: if_sn.c,v 1.11 1999/01/11 05:11:09 millert Exp $ */ /* * National Semiconductor SONIC Driver * Copyright (c) 1991 Algorithmics Ltd (http://www.algor.co.uk) @@ -821,7 +821,7 @@ camprogram(sc) continue; if (timeout == 0) { /* XXX */ - panic("sonic: CAM initialisation failed\n"); + panic("sonic: CAM initialisation failed"); } timeout = 10000; while ((csr->s_isr & ISR_LCD) == 0 && timeout--) diff --git a/sys/arch/arc/pica/picabus.c b/sys/arch/arc/pica/picabus.c index 48a4e69b5b8..2c2eb8442d6 100644 --- a/sys/arch/arc/pica/picabus.c +++ b/sys/arch/arc/pica/picabus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: picabus.c,v 1.10 1998/03/16 09:38:52 pefo Exp $ */ +/* $OpenBSD: picabus.c,v 1.11 1999/01/11 05:11:10 millert Exp $ */ /* $NetBSD: tc.c,v 1.2 1995/03/08 00:39:05 cgd Exp $ */ /* @@ -278,7 +278,7 @@ int pica_intrnull(val) void *val; { - panic("uncaught PICA intr for slot %d\n", val); + panic("uncaught PICA intr for slot %d", val); } /* diff --git a/sys/arch/arm32/arm32/autoconf.c b/sys/arch/arm32/arm32/autoconf.c index e70cb3177c2..8ce5b86ba6d 100644 --- a/sys/arch/arm32/arm32/autoconf.c +++ b/sys/arch/arm32/arm32/autoconf.c @@ -150,7 +150,7 @@ set_root_device() } if (rootdev == NODEV) - panic("No root device specified in boot config\n"); + panic("No root device specified in boot config"); } diff --git a/sys/arch/arm32/arm32/clock.c b/sys/arch/arm32/arm32/clock.c index 203830aee65..6781d24fafe 100644 --- a/sys/arch/arm32/arm32/clock.c +++ b/sys/arch/arm32/arm32/clock.c @@ -155,7 +155,7 @@ cpu_initclocks() clockirq.ih_level = IPL_CLOCK; clockirq.ih_name = "TMR0 hard clk"; if (irq_claim(IRQ_TIMER0, &clockirq) == -1) - panic("Cannot installer timer 0 IRQ handler\n"); + panic("Cannot installer timer 0 IRQ handler"); if (stathz) { setstatclockrate(stathz); @@ -164,7 +164,7 @@ cpu_initclocks() statclockirq.ih_arg = 0; statclockirq.ih_level = IPL_CLOCK; if (irq_claim(IRQ_TIMER1, &clockirq) == -1) - panic("Cannot installer timer 1 IRQ handler\n"); + panic("Cannot installer timer 1 IRQ handler"); } } diff --git a/sys/arch/arm32/arm32/fault.c b/sys/arch/arm32/arm32/fault.c index 594d1b0cc96..c6c61de4ed9 100644 --- a/sys/arch/arm32/arm32/fault.c +++ b/sys/arch/arm32/arm32/fault.c @@ -229,11 +229,11 @@ data_abort_handler(frame) base = (fault_instruction >> 16) & 0x0f; if (base == 13 && (frame->tf_spsr & PSR_MODE) == PSR_SVC32_MODE) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } if (base == 15) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } #ifdef DEBUG_FAULT_CORRECTION if (pmap_debug_level >=0) @@ -255,7 +255,7 @@ data_abort_handler(frame) offset = fault_instruction & 0x0f; if (offset == base) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } /* Register offset - hard we have to cope with shifts ! */ @@ -266,12 +266,12 @@ data_abort_handler(frame) else { if ((fault_instruction & (1 << 7)) != 0) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } shift = ((fault_instruction >> 8) & 0xf); if (base == shift) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } #ifdef DEBUG_FAULT_CORRECTION if (pmap_debug_level >=0) @@ -297,7 +297,7 @@ data_abort_handler(frame) break; case 3 : /* Rotate right */ disassemble(fault_pc); - panic("Abort handler cannot fix this yet :-(\n"); + panic("Abort handler cannot fix this yet :-("); break; } @@ -340,7 +340,7 @@ data_abort_handler(frame) base = (fault_instruction >> 16) & 0x0f; if (base == 15) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } count = 0; for (loop = 0; loop < 16; ++loop) { @@ -387,11 +387,11 @@ data_abort_handler(frame) base = (fault_instruction >> 16) & 0x0f; if (base == 13 && (frame->tf_spsr & PSR_MODE) == PSR_SVC32_MODE) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } if (base == 15) { disassemble(fault_pc); - panic("Abort handler cannot fix this :-(\n"); + panic("Abort handler cannot fix this :-("); } offset = (fault_instruction & 0xff) << 2; @@ -461,7 +461,7 @@ data_abort_handler(frame) return; if (pmap_modified_emulation(kernel_pmap, va)) return; - panic("no pcb ... we're toast !\n"); + panic("no pcb ... we're toast !"); } if (pcb != curpcb) { @@ -503,7 +503,7 @@ copyfault: ++onfault_count; if (onfault_count > 10) { traceback(); - panic("Eaten by zombies\n"); + panic("Eaten by zombies"); } return; } @@ -528,7 +528,7 @@ copyfault: case FAULT_WRTBUF_1: /* Write Buffer Fault */ /* If this happens forget it no point in continuing */ - panic("Write Buffer Fault - Halting\n"); + panic("Write Buffer Fault - Halting"); break; case FAULT_ALIGN_0 | FAULT_USER: /* Alignment Fault */ @@ -543,7 +543,7 @@ copyfault: * register in the CPU. Might as well panic as the kernel was not compiled * for aligned accesses. */ - panic("Alignment fault - Halting\n"); + panic("Alignment fault - Halting"); /* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);*/ break; @@ -559,7 +559,7 @@ copyfault: /* What will accutally cause a bus error ? */ /* Real bus errors are not a process problem but hardware */ - panic("Bus Error - Halting\n"); + panic("Bus Error - Halting"); /* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);*/ break; @@ -577,7 +577,7 @@ copyfault: * PTE's but if this happens it implies a kernel problem. */ - panic("Domain Error - Halting\n"); + panic("Domain Error - Halting"); /* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK);*/ break; @@ -630,7 +630,7 @@ copyfault: aborts[fault_status & 0xf], fault_status & 0xfff, fault_address, fault_pc); postmortem(frame); - panic("permission fault in kernel by kernel\n"); + panic("permission fault in kernel by kernel"); } else map = &vm->vm_map; @@ -661,7 +661,7 @@ copyfault: ftype |= VM_PROT_WRITE; /* if (!(ftype & VM_PROT_WRITE)) { - panic("permission fault on a read !\n"); + panic("permission fault on a read !"); }*/ if (pmap_modified_emulation(map->pmap, va)) @@ -683,7 +683,7 @@ copyfault: break; } } -/* panic("Page Permission Fault - Halting\n");*/ +/* panic("Page Permission Fault - Halting");*/ break; #if 0 @@ -705,7 +705,7 @@ copyfault: aborts[fault_status & 0xf], fault_status & 0xfff, fault_address, fault_pc); postmortem(frame); - panic("Page Permission Fault - (in SVC mode) Halting\n"); + panic("Page Permission Fault - (in SVC mode) Halting"); break; #endif @@ -723,7 +723,7 @@ copyfault: trapsignal(p, SIGBUS, FAULT_PERM_S); break; -/* panic("Section Permission Fault - Halting\n"); +/* panic("Section Permission Fault - Halting"); trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK); break;*/ @@ -735,7 +735,7 @@ copyfault: * These faults imply that the PTE is corrupt. Likely to be a kernel * fault so we had better stop. */ - panic("Bus Error Translation - Halting\n"); + panic("Bus Error Translation - Halting"); break; /* trapsignal(p, SIGBUS, fault_status & FAULT_TYPE_MASK); break;*/ @@ -826,7 +826,7 @@ copyfault: /* if (*(((pt_entry_t **)(PROCESS_PAGE_TBLS_BASE + va >> (PD_SHIFT+2)))[]) == 0) - panic("vm_fault: Page table is needed first\n") + panic("vm_fault: Page table is needed first") */ rv = vm_fault(map, va, ftype, FALSE); @@ -862,7 +862,7 @@ nogo: trapsignal(p, SIGSEGV, FAULT_TRANS_P); break; } -/* panic("Page Fault - Halting\n");*/ +/* panic("Page Fault - Halting");*/ break; case FAULT_TRANS_S: /* Section Translation Fault */ @@ -978,7 +978,7 @@ nogo1: trapsignal(p, SIGSEGV, FAULT_TRANS_S); break; } -/* panic("Section Fault - Halting\n"); +/* panic("Section Fault - Halting"); break;*/ default : @@ -992,7 +992,7 @@ we_re_toast: postmortem(frame); - panic("Fault cannot be handled\n"); + panic("Fault cannot be handled"); break; } @@ -1043,7 +1043,7 @@ prefetch_abort_handler(frame) postmortem(frame); pmap_debug_level = 0; (void)splx(s); - panic("Fault handler not in SVC mode\n"); + panic("Fault handler not in SVC mode"); } @@ -1076,7 +1076,7 @@ prefetch_abort_handler(frame) pcb = &p->p_addr->u_pcb; if (pcb == 0) - panic("no pcb ... we're toast !\n"); + panic("no pcb ... we're toast !"); if (pcb != curpcb) { printf("data_abort: Alert ! pcb(%08x) != curpcb(%08x)\n", (u_int)pcb, @@ -1116,7 +1116,7 @@ prefetch_abort_handler(frame) validate_trapframe(frame, 4); #endif #else - panic("Prefetch abort in SVC mode\n"); + panic("Prefetch abort in SVC mode"); #endif } diff --git a/sys/arch/arm32/arm32/irqhandler.c b/sys/arch/arm32/arm32/irqhandler.c index fe3a764706f..6f75277f577 100644 --- a/sys/arch/arm32/arm32/irqhandler.c +++ b/sys/arch/arm32/arm32/irqhandler.c @@ -237,7 +237,7 @@ irq_claim(irq, handler) */ if (irq >= IRQ_EXPCARD0 && irqhandlers[IRQ_PODULE] == NULL) - panic("Podule IRQ %d claimed but no podulebus handler installed\n", + panic("Podule IRQ %d claimed but no podulebus handler installed", irq); enable_irq(irq); @@ -408,7 +408,7 @@ void stray_irqhandler(mask) u_int mask; { -/* panic("Stray IRQ received (%08x)\n", mask);*/ +/* panic("Stray IRQ received (%08x)", mask);*/ static u_int stray_irqs = 0; if (++stray_irqs <= 8) diff --git a/sys/arch/arm32/arm32/machdep.c b/sys/arch/arm32/arm32/machdep.c index ad2be7c616d..bb2f341abf1 100644 --- a/sys/arch/arm32/arm32/machdep.c +++ b/sys/arch/arm32/arm32/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.3 1998/03/01 00:37:27 niklas Exp $ */ +/* $OpenBSD: machdep.c,v 1.4 1999/01/11 05:11:11 millert Exp $ */ /* $NetBSD: machdep.c,v 1.6 1996/03/13 21:32:39 mark Exp $ */ /* @@ -590,7 +590,7 @@ initarm(bootconf) /* Check to make sure the page size is correct */ if (NBPG != bootconfig.pagesize) - panic("Page size is not %d bytes\n", NBPG); + panic("Page size is not %d bytes", NBPG); /* * Ok now we have the hard bit. @@ -617,10 +617,10 @@ initarm(bootconf) */ if ((bootconfig.scratchphysicalbase & 0x3fff) != 0) - panic("initarm: Scratch area not aligned on 16KB boundry\n"); + panic("initarm: Scratch area not aligned on 16KB boundry"); if ((bootconfig.scratchsize < 0xc000) != 0) - panic("initarm: Scratch area too small (need >= 48KB)\n"); + panic("initarm: Scratch area too small (need >= 48KB)"); /* * Ok start the primary bootstrap. @@ -841,7 +841,7 @@ initarm(bootconf) /* This should never be able to happen but better confirm that. */ if ((kernel_pt_table[0] & (PD_SIZE-1)) != 0) - panic("initarm: Failed to align the kernel page directory\n"); + panic("initarm: Failed to align the kernel page directory"); /* Update the address of the first free page of physical memory */ @@ -1506,7 +1506,7 @@ allocsys(v) #ifdef DIAGNOSTIC if (bufpages == 0) - panic("bufpages = 0\n"); + panic("bufpages = 0"); #endif if (nbuf == 0) { @@ -1539,7 +1539,7 @@ map_section(pagetable, va, pa) vm_offset_t pa; { if ((va & 0xfffff) != 0) - panic("initarm: Cannot allocate 1MB section on non 1MB boundry\n"); + panic("initarm: Cannot allocate 1MB section on non 1MB boundry"); ((u_int *)pagetable)[(va >> 20)] = L1_SEC((pa & PD_MASK)); } diff --git a/sys/arch/arm32/arm32/pmap.c b/sys/arch/arm32/arm32/pmap.c index 66b5a935d39..41957167ef6 100644 --- a/sys/arch/arm32/arm32/pmap.c +++ b/sys/arch/arm32/arm32/pmap.c @@ -457,7 +457,7 @@ pmap_modify_pv(pmap, va, pind, bic_mask, eor_mask) #ifdef DIAGNOSTIC if (pind > 0x00010000 || pind < 0) { traceback(); - panic("pmap_modify_pv: pind out of range pind = %08x va=%08x\n", pind, va); + panic("pmap_modify_pv: pind out of range pind = %08x va=%08x", pind, va); } #endif @@ -926,7 +926,7 @@ pmap_freepagedir(pmap) index = (((u_int) pmap->pm_pdir) - PAGE_DIRS_BASE - PD_SIZE) / PD_SIZE; if (pagedirectories[index] != pmap) - panic("pm_pdir inconsistancy found\n"); + panic("pm_pdir inconsistancy found"); pagedirectories[index] = 0; @@ -1377,7 +1377,7 @@ pmap_remove(pmap, sva, eva) #ifdef DIAGNOSTIC if (pind > 0x00010000 || pind < 0) { printf("eerk ! pind=%08x pa=%08x\n", pind, (int) pa); - panic("The axe has fallen, were dead\n"); + panic("The axe has fallen, were dead"); } #endif if (pmap_remove_pv(pmap, sva, pind) & PT_W) @@ -1580,7 +1580,7 @@ pmap_protect(pmap, sva, eva, prot) /* Get the physical page index */ if ((pind = pmap_page_index(pa)) == -1) - panic("pmap_protect: pmap_page_index failed for pte %08x\n", pte); + panic("pmap_protect: pmap_page_index failed for pte %08x", pte); /* Clear write flag */ @@ -1651,7 +1651,7 @@ pmap_enter(pmap, va, pa, prot, wired) if (!pte) { printf("pmap_enter: pde = %08x\n", (u_int) pmap_pde(pmap, va)); printf("pmap_enter: pte = %08x\n", (u_int) pmap_pte(pmap, va)); - panic("Failure 01 in pmap_enter (V%08x P%08x)\n", (u_int) va, (u_int) pa); + panic("Failure 01 in pmap_enter (V%08x P%08x)", (u_int) va, (u_int) pa); } /* More debugging info */ @@ -1823,7 +1823,7 @@ if (va == 0 && (prot & VM_PROT_WRITE)) if (*pte == 0) { - panic("oopss: *pte = 0 in pmap_enter() npte=%08x\n", npte); + panic("oopss: *pte = 0 in pmap_enter() npte=%08x", npte); } if (pind != -1) @@ -2431,7 +2431,7 @@ pmap_modified_emulation(pmap, va) if (pmap_attributes) pmap_attributes[pind] |= PT_M; -/* panic("pmap_modified_emulation: Not yet completed\n");*/ +/* panic("pmap_modified_emulation: Not yet completed");*/ /* Return, indicating the problem has been dealt with */ diff --git a/sys/arch/arm32/arm32/stubs.c b/sys/arch/arm32/arm32/stubs.c index 116bfc30a08..f87be59bf5a 100644 --- a/sys/arch/arm32/arm32/stubs.c +++ b/sys/arch/arm32/arm32/stubs.c @@ -117,7 +117,7 @@ do_mountroot() if (major(rootdev) == 18 && bootrd) { if (load_ramdisc_from_floppy(bootrd, makedev(17, minor(rootdev))) != 0) - panic("Failed to load ramdisc\n"); + panic("Failed to load ramdisc"); boothowto |= RB_SINGLE; rootdev = makedev(major(rootdev), 0); } diff --git a/sys/arch/arm32/arm32/syscall.c b/sys/arch/arm32/arm32/syscall.c index 318d99ecd64..cef77b05978 100644 --- a/sys/arch/arm32/arm32/syscall.c +++ b/sys/arch/arm32/arm32/syscall.c @@ -154,7 +154,7 @@ syscall(frame, code) #endif return; #else - panic("syscall in kernel mode !\n"); + panic("syscall in kernel mode !"); #endif } #endif @@ -231,7 +231,7 @@ syscall(frame, code) if (frame->tf_r0 != 0) panic((char *)frame->tf_r0, frame->tf_r1, frame->tf_r2, frame->tf_r3); - panic("SYSCALL 0x1004 panic\n"); + panic("SYSCALL 0x1004 panic"); break;*/ /* case 0x1007: diff --git a/sys/arch/arm32/arm32/undefined.c b/sys/arch/arm32/arm32/undefined.c index 65f390740c5..ed113b03109 100644 --- a/sys/arch/arm32/arm32/undefined.c +++ b/sys/arch/arm32/arm32/undefined.c @@ -187,7 +187,7 @@ undefinedinstruction(frame) pcb = &p->p_addr->u_pcb; if (pcb == 0) { - panic("no pcb ... we're toast !\n"); + panic("no pcb ... we're toast !"); } #endif @@ -318,7 +318,7 @@ resethandler(frame) validate_trapframe(frame, 4); #endif #else - panic("Branch through zero..... were dead\n"); + panic("Branch through zero..... were dead"); #endif } diff --git a/sys/arch/arm32/arm32/vm_machdep.c b/sys/arch/arm32/arm32/vm_machdep.c index f2f0c290caf..46c6517715d 100644 --- a/sys/arch/arm32/arm32/vm_machdep.c +++ b/sys/arch/arm32/arm32/vm_machdep.c @@ -207,7 +207,7 @@ cpu_fork(p1, p2) #endif if (vm_map_pageable(&p2->p_vmspace->vm_map, addr, addr+NBPG, FALSE) != 0) { - panic("Failed to fault in system page PT\n"); + panic("Failed to fault in system page PT"); } #ifdef DEBUG_VMMACHDEP diff --git a/sys/arch/arm32/mainbus/beep.c b/sys/arch/arm32/mainbus/beep.c index 762830309f5..fd4adaa3ea6 100644 --- a/sys/arch/arm32/mainbus/beep.c +++ b/sys/arch/arm32/mainbus/beep.c @@ -137,9 +137,9 @@ beepattach(parent, self, aux) sc->sc_buffer0 = kmem_alloc(kernel_map, NBPG); if (sc->sc_buffer0 == 0) - panic("beep: Cannot allocate buffer memory\n"); + panic("beep: Cannot allocate buffer memory"); if ((sc->sc_buffer0 & (NBPG -1)) != 0) - panic("beep: Cannot allocate page aligned buffer\n"); + panic("beep: Cannot allocate page aligned buffer"); sc->sc_buffer1 = sc->sc_buffer0; sc->sc_sound_cur0 = pmap_extract(kernel_pmap, @@ -168,7 +168,7 @@ beepattach(parent, self, aux) sc->sc_ih.ih_name = "dma snd ch 0"; if (irq_claim(IRQ_DMASCH0, &sc->sc_ih)) - panic("Cannot claim DMASCH0 IRQ for beep%d\n", parent->dv_unit); + panic("Cannot claim DMASCH0 IRQ for beep%d", parent->dv_unit); disable_irq(IRQ_DMASCH0); diff --git a/sys/arch/arm32/mainbus/com.c b/sys/arch/arm32/mainbus/com.c index ee9b812f796..a22a93c076c 100644 --- a/sys/arch/arm32/mainbus/com.c +++ b/sys/arch/arm32/mainbus/com.c @@ -232,7 +232,7 @@ comattach(parent, self, aux) sc->sc_ih.ih_name = "serial"; if (mb->mb_irq != IRQUNK) if (irq_claim(mb->mb_irq, &sc->sc_ih)) - panic("Cannot claim IRQ %d for com%d\n", mb->mb_irq, sc->sc_dev.dv_unit); + panic("Cannot claim IRQ %d for com%d", mb->mb_irq, sc->sc_dev.dv_unit); #ifdef KGDB if (kgdb_dev == makedev(commajor, unit)) { diff --git a/sys/arch/arm32/mainbus/fd.c b/sys/arch/arm32/mainbus/fd.c index db8316cf288..efdca4fc236 100644 --- a/sys/arch/arm32/mainbus/fd.c +++ b/sys/arch/arm32/mainbus/fd.c @@ -328,7 +328,7 @@ fdcattach(parent, self, aux) fdc->sc_ih.ih_level = IPL_BIO; fdc->sc_ih.ih_name = "fdc"; if (irq_claim(mb->mb_irq, &fdc->sc_ih)) - panic("Cannot claim IRQ %d for fdc%d\n", mb->mb_irq, parent->dv_unit); + panic("Cannot claim IRQ %d for fdc%d", mb->mb_irq, parent->dv_unit); /* * The NVRAM info only tells us about the first two disks on the @@ -973,7 +973,7 @@ loop: fiqhandler.fh_r13 = fdc->sc_drq; fiqhandler.fh_mask = 0x01; if (fiq_claim(&fiqhandler) == -1) - panic("Cannot claim FIQ vector\n"); + panic("Cannot claim FIQ vector"); outb(iobase + fdctl, type->rate); #ifdef FD_DEBUG @@ -1026,7 +1026,7 @@ loop: isa_dmaabort(fdc->sc_drq); #endif*/ if (fiq_release(&fiqhandler) == -1) - panic("Cannot release FIQ vector\n"); + panic("Cannot release FIQ vector"); case SEEKTIMEDOUT: case RECALTIMEDOUT: case RESETTIMEDOUT: @@ -1042,7 +1042,7 @@ loop: isa_dmaabort(fdc->sc_drq); #endif*/ if (fiq_release(&fiqhandler) == -1) - panic("Cannot release FIQ vector\n"); + panic("Cannot release FIQ vector"); #ifdef FD_DEBUG fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ? "read failed" : "write failed"); @@ -1060,7 +1060,7 @@ loop: fdc->sc_drq); #endif*/ if (fiq_release(&fiqhandler) == -1) - panic("Cannot release FIQ vector\n"); + panic("Cannot release FIQ vector"); if (fdc->sc_errors) { /* diskerr(bp, "fd", "soft error", LOG_PRINTF, @@ -1319,7 +1319,7 @@ load_ramdisc_from_floppy(rd, dev) fdstrategy(bp); if (biowait(bp)) - panic("Cannot load floppy image\n"); + panic("Cannot load floppy image"); bcopy((caddr_t)bp->b_data, (caddr_t)rd->rd_addr + loop * fd_types[type].sectrac * DEV_BSIZE, diff --git a/sys/arch/arm32/mainbus/kbd.c b/sys/arch/arm32/mainbus/kbd.c index 3b85bdba7e8..5dd3ea7ce86 100644 --- a/sys/arch/arm32/mainbus/kbd.c +++ b/sys/arch/arm32/mainbus/kbd.c @@ -902,7 +902,7 @@ kbdinit(sc) sc->sc_ih.ih_level = IPL_TTY; sc->sc_ih.ih_name = "kbd rx"; if (irq_claim(IRQ_KBDRX, &sc->sc_ih)) - panic("Cannot claim IRQ for kbd%d\n", sc->sc_device.dv_unit); + panic("Cannot claim IRQ for kbd%d", sc->sc_device.dv_unit); modifiers = 0; kbdsetleds((modifiers >> 3) & 7); diff --git a/sys/arch/arm32/mainbus/lpt.c b/sys/arch/arm32/mainbus/lpt.c index 35ff77c3f0d..f379e3a60e3 100644 --- a/sys/arch/arm32/mainbus/lpt.c +++ b/sys/arch/arm32/mainbus/lpt.c @@ -324,7 +324,7 @@ lptattach(parent, self, aux) sc->sc_ih.ih_name = "lpt"; #endif if (irq_claim(mb->mb_irq, &sc->sc_ih)) - panic("Cannot claim IRQ %d for lpt%d\n", mb->mb_irq, sc->sc_dev.dv_unit); + panic("Cannot claim IRQ %d for lpt%d", mb->mb_irq, sc->sc_dev.dv_unit); } #if defined(INET) && defined(PLIP) diff --git a/sys/arch/arm32/mainbus/pms.c b/sys/arch/arm32/mainbus/pms.c index 8339e1ab8a0..8789074800d 100644 --- a/sys/arch/arm32/mainbus/pms.c +++ b/sys/arch/arm32/mainbus/pms.c @@ -267,7 +267,7 @@ pmsattach(parent, self, aux) #ifdef RC7500 sc->sc_ih.ih_num = IRQ_MSDRX; #else - panic("pms: No IRQ specified for pms interrupt handler\n"); + panic("pms: No IRQ specified for pms interrupt handler"); #endif } @@ -302,7 +302,7 @@ pmsopen(dev, flag, mode, p) sc->lastb = -1; if (irq_claim(IRQ_INSTRUCT, &sc->sc_ih) == -1) - panic("Cannot claim MOUSE IRQ\n"); + panic("Cannot claim MOUSE IRQ"); return 0; } @@ -317,7 +317,7 @@ pmsclose(dev, flag, mode, p) struct pms_softc *sc = pms_cd.cd_devs[PMSUNIT(dev)]; if (irq_release(IRQ_INSTRUCT, &sc->sc_ih) != 0) - panic("Cannot release MOUSE IRQ\n"); + panic("Cannot release MOUSE IRQ"); sc->proc = NULL; sc->sc_state &= ~PMS_OPEN; diff --git a/sys/arch/arm32/mainbus/qmouse.c b/sys/arch/arm32/mainbus/qmouse.c index b2a6447a073..14842236425 100644 --- a/sys/arch/arm32/mainbus/qmouse.c +++ b/sys/arch/arm32/mainbus/qmouse.c @@ -203,7 +203,7 @@ quadmouseopen(dev, flag, mode, p) WriteByte(IOMD_T1GO, 0); if (irq_claim(IRQ_TIMER1, &sc->sc_ih)) - panic("Cannot claim TIMER1 IRQ for quadmouse%d\n", sc->sc_device.dv_unit); + panic("Cannot claim TIMER1 IRQ for quadmouse%d", sc->sc_device.dv_unit); return(0); } @@ -220,7 +220,7 @@ quadmouseclose(dev, flag, mode, p) struct quadmouse_softc *sc = quadmouse_cd.cd_devs[unit]; if (irq_release(IRQ_TIMER1, &sc->sc_ih) != 0) - panic("Cannot release IRA\n"); + panic("Cannot release IRA"); sc->proc = NULL; sc->sc_state = 0; diff --git a/sys/arch/arm32/mainbus/vidcaudio.c b/sys/arch/arm32/mainbus/vidcaudio.c index 0529519a9b4..dc215efa31f 100644 --- a/sys/arch/arm32/mainbus/vidcaudio.c +++ b/sys/arch/arm32/mainbus/vidcaudio.c @@ -204,7 +204,7 @@ vidcaudio_attach(parent, self, aux) ag.silence = kmem_alloc(kernel_map, NBPG); if (ag.silence == NULL) - panic("vidcaudio: Cannot allocate memory\n"); + panic("vidcaudio: Cannot allocate memory"); bzero((char *)ag.silence, NBPG); bcopy((char *)beep_waveform, (char *)ag.silence, sizeof(beep_waveform)); 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);*/ } diff --git a/sys/arch/arm32/podulebus/asc.c b/sys/arch/arm32/podulebus/asc.c index 9514a19d44a..57bc3aade4c 100644 --- a/sys/arch/arm32/podulebus/asc.c +++ b/sys/arch/arm32/podulebus/asc.c @@ -207,7 +207,7 @@ ascattach(pdp, dp, auxp) if (!asc_poll) #endif if (irq_claim(IRQ_PODULE, &sc->sc_ih)) - panic("asc: Cannot claim podule IRQ\n"); + panic("asc: Cannot claim podule IRQ"); /* * attach all scsi units on us @@ -258,7 +258,7 @@ asc_dmago(dev, addr, count, flags) #ifdef DDB Debugger(); #else - panic("Hit a brick wall\n"); + panic("Hit a brick wall"); #endif #if 0 volatile struct sdmac *sdp; @@ -373,7 +373,7 @@ asc_dmanext(dev) #ifdef DDB Debugger(); #else - panic("Hit a brick wall\n"); + panic("Hit a brick wall"); #endif #if 0 volatile struct sdmac *sdp; @@ -462,7 +462,7 @@ int kvtop() #ifdef DDB Debugger(); #else - panic("Hit a brick wall\n"); + panic("Hit a brick wall"); #endif return(0); } diff --git a/sys/arch/arm32/podulebus/if_ea.c b/sys/arch/arm32/podulebus/if_ea.c index de1d1d3576e..e503d723ee5 100644 --- a/sys/arch/arm32/podulebus/if_ea.c +++ b/sys/arch/arm32/podulebus/if_ea.c @@ -508,7 +508,7 @@ ea_claimirq(sc) dprintf(("ea_claimirq(%d)\n", sc->sc_irq)); if (irq_claim(sc->sc_irq, &sc->sc_ih)) - panic("Cannot install IRQ handler for IRQ %d\n", sc->sc_irq); + panic("Cannot install IRQ handler for IRQ %d", sc->sc_irq); sc->sc_irqclaimed = 1; } @@ -526,7 +526,7 @@ ea_releaseirq(sc) dprintf(("ea_releaseirq(%d)\n", sc->sc_irq)); if (irq_release(sc->sc_irq, &sc->sc_ih)) - panic("Cannot release IRQ handler for IRQ %d\n", sc->sc_irq); + panic("Cannot release IRQ handler for IRQ %d", sc->sc_irq); sc->sc_irqclaimed = 0; } diff --git a/sys/arch/arm32/podulebus/if_eb.c b/sys/arch/arm32/podulebus/if_eb.c index 5075b955fd9..356af878376 100644 --- a/sys/arch/arm32/podulebus/if_eb.c +++ b/sys/arch/arm32/podulebus/if_eb.c @@ -518,7 +518,7 @@ eb_claimirq(sc) dprintf(("eb_claimirq(%d)\n", sc->sc_irq)); if (irq_claim(sc->sc_irq, &sc->sc_ih)) - panic("Cannot install IRQ handler for IRQ %d\n", sc->sc_irq); + panic("Cannot install IRQ handler for IRQ %d", sc->sc_irq); sc->sc_irqclaimed = 1; } @@ -536,7 +536,7 @@ eb_releaseirq(sc) dprintf(("eb_releaseirq(%d)\n", sc->sc_irq)); if (irq_release(sc->sc_irq, &sc->sc_ih)) - panic("Cannot release IRQ handler for IRQ %d\n", sc->sc_irq); + panic("Cannot release IRQ handler for IRQ %d", sc->sc_irq); sc->sc_irqclaimed = 0; } diff --git a/sys/arch/arm32/podulebus/if_eh.c b/sys/arch/arm32/podulebus/if_eh.c index a9b830634b4..4083515545f 100644 --- a/sys/arch/arm32/podulebus/if_eh.c +++ b/sys/arch/arm32/podulebus/if_eh.c @@ -309,10 +309,10 @@ ehprobe(parent, match, aux) char *read_buffer; MALLOC(test_data, char *, NLEN, M_TEMP, M_NOWAIT); if (test_data == NULL) - panic("Cannot allocate temporary memory for buffer test (1)\n"); + panic("Cannot allocate temporary memory for buffer test (1)"); MALLOC(read_buffer, char *, NLEN, M_TEMP, M_NOWAIT); if (read_buffer == NULL) - panic("Cannot allocate temporary memory for buffer test (1)\n"); + panic("Cannot allocate temporary memory for buffer test (1)"); printf("1."); diff --git a/sys/arch/arm32/podulebus/if_ie.c b/sys/arch/arm32/podulebus/if_ie.c index 8ea7517c1de..80d3199d222 100644 --- a/sys/arch/arm32/podulebus/if_ie.c +++ b/sys/arch/arm32/podulebus/if_ie.c @@ -452,7 +452,7 @@ void ieattach ( struct device *parent, struct device *self, void *aux ) { sc->sc_irqmode = 0; printf ( " POLLED" ); - panic("Cannot install IRQ handler\n"); + panic("Cannot install IRQ handler"); } else { @@ -1306,7 +1306,7 @@ int ieintr ( void *arg ) if ( in_intr==1 ) { - panic ( "ie: INTERRUPT REENTERED\n" ); + panic ( "ie: INTERRUPT REENTERED" ); } /* Clear the interrrupt */ diff --git a/sys/arch/arm32/podulebus/podulebus.c b/sys/arch/arm32/podulebus/podulebus.c index 6741da1701c..24e91b9bc9c 100644 --- a/sys/arch/arm32/podulebus/podulebus.c +++ b/sys/arch/arm32/podulebus/podulebus.c @@ -198,7 +198,7 @@ podulebusprint(aux, podulebus) else if (pa->pa_podule->slottype == SLOT_NET) printf(" [ netslot %d ]:", pa->pa_podule_number - MAX_PODULES); else - panic("Invalid slot type\n"); + panic("Invalid slot type"); } /* XXXX print flags */ @@ -535,7 +535,7 @@ podulebusattach(parent, self, aux) poduleirq.ih_name = "podulebus"; if (irq_claim(IRQ_PODULE, &poduleirq)) - panic("Cannot claim IRQ for podulebus%d\n", IRQ_PODULE, parent->dv_unit); + panic("Cannot claim IRQ for podulebus%d", IRQ_PODULE, parent->dv_unit); /* Find out what hardware is bolted on */ diff --git a/sys/arch/arm32/podulebus/ptsc.c b/sys/arch/arm32/podulebus/ptsc.c index 958bba2e236..ab9b8fbe048 100644 --- a/sys/arch/arm32/podulebus/ptsc.c +++ b/sys/arch/arm32/podulebus/ptsc.c @@ -196,7 +196,7 @@ ptscattach(pdp, dp, auxp) #if PTSC_POLL == 0 if (irq_claim(IRQ_PODULE /*IRQ_EXPCARD0 + sc->sc_specific.sc_podule_number */, &sc->sc_softc.sc_ih)) - panic("ptsc: Cannot install IRQ handler\n"); + panic("ptsc: Cannot install IRQ handler"); #endif printf("\n"); diff --git a/sys/arch/arm32/podulebus/sbic.c b/sys/arch/arm32/podulebus/sbic.c index b4d5b097f81..22f8a82f252 100644 --- a/sys/arch/arm32/podulebus/sbic.c +++ b/sys/arch/arm32/podulebus/sbic.c @@ -2100,7 +2100,7 @@ sbicmsgin(dev) !(asr & SBIC_ASR_DBR|SBIC_ASR_INT) ) GET_SBIC_asr(regs, asr); if( asr & SBIC_ASR_DBR ) - panic("msgin: jammed again!\n"); + panic("msgin: jammed again!"); GET_SBIC_csr(regs, csr); CSR_TRACE('e',csr,asr,dev->target); if( csr & 0x07 != MESG_OUT_PHASE ) { diff --git a/sys/arch/atari/atari/kdassert.h b/sys/arch/atari/atari/kdassert.h index 2b4ac37a3b9..da29af09481 100644 --- a/sys/arch/atari/atari/kdassert.h +++ b/sys/arch/atari/atari/kdassert.h @@ -36,18 +36,18 @@ #if defined (__STDC__) #if defined (__GNUC__) #define KDASSERT(x) if (!(x)) panic ("kernel assertion:\"%s\" failed\nfile: %s\n" \ - "func: %s\nline: %d\n", #x , __FILE__, __FUNCTION__, __LINE__) + "func: %s\nline: %d", #x , __FILE__, __FUNCTION__, __LINE__) #else /* !__GNUC__ */ #define KDASSERT(x) if (!(x)) panic ("kernel assertion:\"%s\" failed\nfile: %s\n" \ - "line: %d\n", #x, __FILE__, __LINE__) + "line: %d", #x, __FILE__, __LINE__) #endif /* !__GNUC__ */ #else /* !__STDC__ */ #if defined (__GNUC__) #define KDASSERT(x) if (!(x)) panic ("kernel assertion:\"%s\" failed\nfile: %s\n" \ - "func: %s\nline: %d\n", "x", __FILE__, __FUNCTION__, __LINE__) + "func: %s\nline: %d", "x", __FILE__, __FUNCTION__, __LINE__) #else /* !__GNUC__ */ #define KDASSERT(x) if (!(x)) panic ("kernel assertion:\"%s\" failed\nfile: %s\n" \ - "line: %d\n", "x", __FILE__, __LINE__) + "line: %d", "x", __FILE__, __LINE__) #endif /* !__GNUC__ */ #endif /* !__STDC__ */ #else /* !DEBUG */ diff --git a/sys/arch/atari/atari/pmap.c b/sys/arch/atari/atari/pmap.c index 9a1ff4963ad..250fcbfae23 100644 --- a/sys/arch/atari/atari/pmap.c +++ b/sys/arch/atari/atari/pmap.c @@ -391,7 +391,7 @@ pmap_init(phys_start, phys_end) * page table map. Need to adjust pmap_size() in atari_init.c. */ if (addr != (vm_offset_t)Sysmap) - panic("pmap_init: bogons in the VM system!\n"); + panic("pmap_init: bogons in the VM system!"); #ifdef DEBUG if (pmapdebug & PDB_INIT) { printf("pmap_init: Sysseg %x, Sysmap %x, Sysptmap %x\n", diff --git a/sys/arch/atari/dev/dma.c b/sys/arch/atari/dev/dma.c index decad0ce889..e3a6e6ce0f1 100644 --- a/sys/arch/atari/dev/dma.c +++ b/sys/arch/atari/dev/dma.c @@ -118,7 +118,7 @@ int rcaller; * Create a request... */ if(dma_free.tqh_first == NULL) - panic("st_dmagrab: Too many outstanding requests\n"); + panic("st_dmagrab: Too many outstanding requests"); req = dma_free.tqh_first; TAILQ_REMOVE(&dma_free, dma_free.tqh_first, entries); req->call_func = call_func; @@ -164,7 +164,7 @@ int *lock_stat; * Some validity checks first. */ if((req = dma_active.tqh_first) == NULL) - panic("st_dmafree: empty active queue\n"); + panic("st_dmafree: empty active queue"); if(req->softc != softc) printf("Caller of st_dmafree is not lock-owner!\n"); diff --git a/sys/arch/atari/dev/fd.c b/sys/arch/atari/dev/fd.c index 04b303239c2..7e11c9e14d7 100644 --- a/sys/arch/atari/dev/fd.c +++ b/sys/arch/atari/dev/fd.c @@ -702,7 +702,7 @@ int drive, head, dense; DMA->dma_drvmode = (FDC_HDSET|FDC_HDSIG); break; default: - panic("fdselect: unknown density code\n"); + panic("fdselect: unknown density code"); } if(i != selected) { sps = splhigh(); diff --git a/sys/arch/atari/dev/grfabs_fal.c b/sys/arch/atari/dev/grfabs_fal.c index 54a20c722bc..ed367a1019f 100644 --- a/sys/arch/atari/dev/grfabs_fal.c +++ b/sys/arch/atari/dev/grfabs_fal.c @@ -321,7 +321,7 @@ view_t *v; if (mode->current_view == v) { #if 0 if (v->flags & VF_DISPLAY) - panic("Cannot shutdown display\n"); /* XXX */ + panic("Cannot shutdown display"); /* XXX */ #endif mode->current_view = NULL; } diff --git a/sys/arch/atari/dev/grfabs_tt.c b/sys/arch/atari/dev/grfabs_tt.c index 65d2a871585..aeece81b853 100644 --- a/sys/arch/atari/dev/grfabs_tt.c +++ b/sys/arch/atari/dev/grfabs_tt.c @@ -145,7 +145,7 @@ view_t *v; if (mode->current_view == v) { #if 0 if (v->flags & VF_DISPLAY) - panic("Cannot shutdown display\n"); /* XXX */ + panic("Cannot shutdown display"); /* XXX */ #endif mode->current_view = NULL; } diff --git a/sys/arch/atari/dev/ncr5380.c b/sys/arch/atari/dev/ncr5380.c index 03efb29712b..eebad00a83b 100644 --- a/sys/arch/atari/dev/ncr5380.c +++ b/sys/arch/atari/dev/ncr5380.c @@ -713,7 +713,7 @@ struct ncr_softc *sc; #else if (pdma_ready()) return; - panic("Got DMA interrupt without DMA\n"); + panic("Got DMA interrupt without DMA"); #endif } scsi_clr_ipend(); diff --git a/sys/arch/hp300/hp300/intr.c b/sys/arch/hp300/hp300/intr.c index b9e5cf4cde2..a8db5915ce9 100644 --- a/sys/arch/hp300/hp300/intr.c +++ b/sys/arch/hp300/hp300/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.3 1999/01/07 23:15:57 deraadt Exp $ */ +/* $OpenBSD: intr.c,v 1.4 1999/01/11 05:11:20 millert Exp $ */ /* $NetBSD: intr.c,v 1.2 1997/05/01 16:24:26 thorpej Exp $ */ /*- @@ -253,7 +253,7 @@ intr_dispatch(evec) vec = (evec & 0xfff) >> 2; if ((vec < ISRLOC) || (vec >= (ISRLOC + NISR))) - panic("isrdispatch: bad vec 0x%x\n", vec); + panic("isrdispatch: bad vec 0x%x", vec); ipl = vec - ISRLOC; intrcnt[ipl]++; diff --git a/sys/arch/hp300/hp300/pmap.c b/sys/arch/hp300/hp300/pmap.c index fe6a0dcf7f0..c1022b9a0d9 100644 --- a/sys/arch/hp300/hp300/pmap.c +++ b/sys/arch/hp300/hp300/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.9 1997/11/06 19:42:38 millert Exp $ */ +/* $OpenBSD: pmap.c,v 1.10 1999/01/11 05:11:20 millert Exp $ */ /* $NetBSD: pmap.c,v 1.36 1997/06/10 18:52:23 veego Exp $ */ /* @@ -385,7 +385,7 @@ pmap_init(phys_start, phys_end) */ if (addr != (vm_offset_t)Sysmap) bogons: - panic("pmap_init: bogons in the VM system!\n"); + panic("pmap_init: bogons in the VM system!"); #ifdef DEBUG if (pmapdebug & PDB_INIT) { diff --git a/sys/arch/hp300/stand/common/if_le.c b/sys/arch/hp300/stand/common/if_le.c index 802722993b6..1df2554261e 100644 --- a/sys/arch/hp300/stand/common/if_le.c +++ b/sys/arch/hp300/stand/common/if_le.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le.c,v 1.1 1997/07/14 08:14:16 downsj Exp $ */ +/* $OpenBSD: if_le.c,v 1.2 1999/01/11 05:11:21 millert Exp $ */ /* $NetBSD: if_le.c,v 1.9 1997/01/30 10:32:54 thorpej Exp $ */ /* @@ -307,7 +307,7 @@ le_error(unit, str, stat) { if (stat & LE_BABL) - panic("le%d: been babbling, found by '%s'\n", unit, str); + panic("le%d: been babbling, found by '%s'", unit, str); if (stat & LE_CERR) le_stats[unit].collision_error++; if (stat & LE_MISS) @@ -488,7 +488,7 @@ le_poll(desc, pkt, len) goto cleanup; } if ((cdm->flags & (LE_STP|LE_ENP)) != (LE_STP|LE_ENP)) - panic("le_poll: chained packet\n"); + panic("le_poll: chained packet"); length = cdm->mcnt; #ifdef LE_DEBUG @@ -497,7 +497,7 @@ le_poll(desc, pkt, len) #endif if (length >= BUFSIZE) { length = 0; - panic("csr0 when bad things happen: %x\n", stat); + panic("csr0 when bad things happen: %x", stat); goto cleanup; } if (!length) diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index 4b5859a8979..792e27b6b27 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.1 1999/01/01 16:10:29 mickey Exp $ */ +/* $OpenBSD: trap.c,v 1.2 1999/01/11 05:11:22 millert Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -162,7 +162,7 @@ trap(type, frame) ret = vm_fault(map, va, FAULT_TYPE(opcode), FALSE); if (ret == KERN_SUCCESS) break; - panic("trap: vm_fault(%p, %x, %d, %d): %d\n", + panic("trap: vm_fault(%p, %x, %d, %d): %d", map, va, FAULT_TYPE(opcode), 0, ret); break; default: diff --git a/sys/arch/i386/eisa/eisa_machdep.c b/sys/arch/i386/eisa/eisa_machdep.c index 766b3a0cb45..f11abdc3ad1 100644 --- a/sys/arch/i386/eisa/eisa_machdep.c +++ b/sys/arch/i386/eisa/eisa_machdep.c @@ -155,7 +155,7 @@ eisa_intr_string(ec, ih) static char irqstr[8]; /* 4 + 2 + NULL + sanity */ if (ih == 0 || ih >= ICU_LEN || ih == 2) - panic("eisa_intr_string: bogus handle 0x%x\n", ih); + panic("eisa_intr_string: bogus handle 0x%x", ih); sprintf(irqstr, "irq %d", ih); return (irqstr); @@ -172,7 +172,7 @@ eisa_intr_establish(ec, ih, type, level, func, arg, what) { if (ih == 0 || ih >= ICU_LEN || ih == 2) - panic("eisa_intr_establish: bogus handle 0x%x\n", ih); + panic("eisa_intr_establish: bogus handle 0x%x", ih); return isa_intr_establish(NULL, ih, type, level, func, arg, what); } diff --git a/sys/arch/i386/i386/freebsd_machdep.c b/sys/arch/i386/i386/freebsd_machdep.c index 48b9381fc52..68a66393910 100644 --- a/sys/arch/i386/i386/freebsd_machdep.c +++ b/sys/arch/i386/i386/freebsd_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_machdep.c,v 1.9 1997/02/01 21:53:18 deraadt Exp $ */ +/* $OpenBSD: freebsd_machdep.c,v 1.10 1999/01/11 05:11:23 millert Exp $ */ /* $NetBSD: freebsd_machdep.c,v 1.10 1996/05/03 19:42:05 christos Exp $ */ /*- @@ -293,7 +293,7 @@ netbsd_to_freebsd_ptrace_regs(nregs, nfpregs, fregs) #ifdef DIAGNOSTIC if (sizeof(fregs->freebsd_ptrace_fpregs.sv_pad) < sizeof(nframe->sv_ex_tw) + sizeof(nframe->sv_pad)) { - panic("netbsd_to_freebsd_ptrace_regs: %s\n", + panic("netbsd_to_freebsd_ptrace_regs: %s", "sizeof(freebsd_save87) >= sizeof(save87)"); } #endif diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index bc1f2fb8dab..18d718af157 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.96 1999/01/06 01:31:20 kstailey Exp $ */ +/* $OpenBSD: machdep.c,v 1.97 1999/01/11 05:11:24 millert Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -795,7 +795,7 @@ identifycpu() #ifdef DIAGNOSTIC if (cpu < 0 || cpu >= (sizeof i386_nocpuid_cpus/sizeof(struct cpu_nocpuid_nameclass))) - panic("unknown cpu type %d\n", cpu); + panic("unknown cpu type %d", cpu); #endif name = i386_nocpuid_cpus[cpu].cpu_name; vendor = i386_nocpuid_cpus[cpu].cpu_vendor; diff --git a/sys/arch/i386/isa/ahc_isa.c b/sys/arch/i386/isa/ahc_isa.c index 6d69ffcb367..a7bb4f33511 100644 --- a/sys/arch/i386/isa/ahc_isa.c +++ b/sys/arch/i386/isa/ahc_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahc_isa.c,v 1.3 1996/11/28 23:37:39 niklas Exp $ */ +/* $OpenBSD: ahc_isa.c,v 1.4 1999/01/11 05:11:24 millert Exp $ */ /* $NetBSD: ahc_isa.c,v 1.5 1996/10/21 22:27:39 thorpej Exp $ */ /* @@ -357,7 +357,7 @@ ahc_isa_attach(parent, self, aux) model = EISA_PRODUCT_ADP7757; type = AHC_284; } else { - panic("ahc_isa_attach: Unknown device type %s\n", idstring); + panic("ahc_isa_attach: Unknown device type %s", idstring); } printf(": %s\n", model); diff --git a/sys/arch/i386/isa/pccom.c b/sys/arch/i386/isa/pccom.c index caf71b57680..466752bac52 100644 --- a/sys/arch/i386/isa/pccom.c +++ b/sys/arch/i386/isa/pccom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccom.c,v 1.26 1998/10/07 02:10:52 downsj Exp $ */ +/* $OpenBSD: pccom.c,v 1.27 1999/01/11 05:11:25 millert Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -836,7 +836,7 @@ comattach(parent, self, aux) sc->sc_fifolen = 128; break; default: - panic("comattach: bad fifo type\n"); + panic("comattach: bad fifo type"); } /* clear and disable fifo */ diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c index 9a0145a61b9..418710df14e 100644 --- a/sys/arch/i386/pci/pci_machdep.c +++ b/sys/arch/i386/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.13 1998/07/09 19:26:42 deraadt Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.14 1999/01/11 05:11:26 millert Exp $ */ /* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */ /*- @@ -461,7 +461,7 @@ pci_intr_string(pc, ih) static char irqstr[8]; /* 4 + 2 + NULL + sanity */ if (ih == 0 || ih >= ICU_LEN || ih == 2) - panic("pci_intr_string: bogus handle 0x%x\n", ih); + panic("pci_intr_string: bogus handle 0x%x", ih); sprintf(irqstr, "irq %d", ih); return (irqstr); @@ -478,7 +478,7 @@ pci_intr_establish(pc, ih, level, func, arg, what) { if (ih == 0 || ih >= ICU_LEN || ih == 2) - panic("pci_intr_establish: bogus handle 0x%x\n", ih); + panic("pci_intr_establish: bogus handle 0x%x", ih); return isa_intr_establish(NULL, ih, IST_LEVEL, level, func, arg, what); } diff --git a/sys/arch/kbus/dev/am7990.c b/sys/arch/kbus/dev/am7990.c index e7ce53826fc..e6ee5f89ca0 100644 --- a/sys/arch/kbus/dev/am7990.c +++ b/sys/arch/kbus/dev/am7990.c @@ -1,4 +1,4 @@ -/* $OpenBSD: am7990.c,v 1.1 1997/10/14 07:25:29 gingold Exp $ */ +/* $OpenBSD: am7990.c,v 1.2 1999/01/11 05:11:27 millert Exp $ */ /* $NetBSD: am7990.c,v 1.22 1996/10/13 01:37:19 christos Exp $ */ /*- @@ -325,7 +325,7 @@ am7990_init(sc) ifp->if_timer = 0; am7990_start(ifp); } else - panic("%s: card failed to initialize\n", sc->sc_dev.dv_xname); + panic("%s: card failed to initialize", sc->sc_dev.dv_xname); if (sc->sc_hwinit) (*sc->sc_hwinit)(sc); } diff --git a/sys/arch/kbus/dev/kbus.c b/sys/arch/kbus/dev/kbus.c index f23be84b314..ee081fc6be7 100644 --- a/sys/arch/kbus/dev/kbus.c +++ b/sys/arch/kbus/dev/kbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbus.c,v 1.1 1997/10/14 07:25:29 gingold Exp $ */ +/* $OpenBSD: kbus.c,v 1.2 1999/01/11 05:11:27 millert Exp $ */ /* $NetBSD: kbus.c,v 1.23 1996/11/20 18:56:56 gwr Exp $ */ /*- @@ -90,7 +90,7 @@ kbus_attach(parent, self, aux) ioasic = (struct ioasic_reg *) bus_mapin (BUS_KBUS, IOASIC_ADDR, IOASIC_SIZE); if (!ioasic) - panic ("Cannot map IOASIC\n"); + panic ("Cannot map IOASIC"); intr_establish (INTR_IOASIC, 0, &ioasic_intrhand); } diff --git a/sys/arch/kbus/dev/sbic.c b/sys/arch/kbus/dev/sbic.c index 761692200b0..124afc70b4b 100644 --- a/sys/arch/kbus/dev/sbic.c +++ b/sys/arch/kbus/dev/sbic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbic.c,v 1.1 1997/10/14 07:25:29 gingold Exp $ */ +/* $OpenBSD: sbic.c,v 1.2 1999/01/11 05:11:27 millert Exp $ */ /* $NetBSD: sbic.c,v 1.28 1996/10/13 03:07:29 christos Exp $ */ /* @@ -2059,7 +2059,7 @@ sbicmsgin(dev) !(asr & SBIC_ASR_DBR|SBIC_ASR_INT) ) GET_SBIC_asr(regs, asr); if( asr & SBIC_ASR_DBR ) - panic("msgin: jammed again!\n"); + panic("msgin: jammed again!"); GET_SBIC_csr(regs, csr); CSR_TRACE('e',csr,asr,dev->target); if( csr & 0x07 != MESG_OUT_PHASE ) { diff --git a/sys/arch/kbus/dev/vme.c b/sys/arch/kbus/dev/vme.c index 49497e4ee16..8cb12219af6 100644 --- a/sys/arch/kbus/dev/vme.c +++ b/sys/arch/kbus/dev/vme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vme.c,v 1.1 1997/10/14 07:25:29 gingold Exp $ */ +/* $OpenBSD: vme.c,v 1.2 1999/01/11 05:11:28 millert Exp $ */ /* $NetBSD: vme.c,v 1.6 1996/11/20 18:57:02 gwr Exp $ */ /*- @@ -290,7 +290,7 @@ vmeintr_establish(vec, level, ih) struct intrhand *ihs; if (vec == -1) - panic("vmeintr_establish: uninitialized vec\n"); + panic("vmeintr_establish: uninitialized vec"); if (vmeints[vec] == NULL) vmeints[vec] = ih; diff --git a/sys/arch/kbus/dev/zs.c b/sys/arch/kbus/dev/zs.c index 2973afabe92..81752ff1bcb 100644 --- a/sys/arch/kbus/dev/zs.c +++ b/sys/arch/kbus/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.1 1997/10/14 07:25:29 gingold Exp $ */ +/* $OpenBSD: zs.c,v 1.2 1999/01/11 05:11:28 millert Exp $ */ /* $NetBSD: zs.c,v 1.42 1996/11/20 18:57:03 gwr Exp $ */ /*- @@ -286,7 +286,7 @@ zsc_attach(parent, self, aux) /* Use the mapping setup by the Sun PROM. */ if (zsaddr[zsc_unit] == NULL) - panic("zs_attach: zs%d not mapped\n", zsc_unit); + panic("zs_attach: zs%d not mapped", zsc_unit); /* * Initialize software state for each channel. diff --git a/sys/arch/kbus/kbus/machdep.c b/sys/arch/kbus/kbus/machdep.c index 902f9ea96f8..da0cd04a5c6 100644 --- a/sys/arch/kbus/kbus/machdep.c +++ b/sys/arch/kbus/kbus/machdep.c @@ -1424,7 +1424,7 @@ idprom_etheraddr(ether) int i; if (ea == NULL) - panic ("ERROR: ethernet address not set!\n"); + panic ("ERROR: ethernet address not set!"); for (i = 0; i < 6; i++) { @@ -1435,7 +1435,7 @@ idprom_etheraddr(ether) else if (*ea >= 'A' && *ea <= 'F') c = *ea - 'A' + 10; else - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; if (i == 5 && *ea == 0) break; @@ -1453,10 +1453,10 @@ idprom_etheraddr(ether) else if (*ea >= 'A' && *ea <= 'F') c |= *ea - 'A' + 10; else - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; if (i != 5 && *ea != ':') - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; *ether++ = c; } diff --git a/sys/arch/kbus/stand/netboot/dev_net.c b/sys/arch/kbus/stand/netboot/dev_net.c index 63f5e85a180..1fa0ec84fb9 100644 --- a/sys/arch/kbus/stand/netboot/dev_net.c +++ b/sys/arch/kbus/stand/netboot/dev_net.c @@ -1,4 +1,4 @@ -/* $Id: dev_net.c,v 1.1 1997/10/14 07:25:32 gingold Exp $ */ +/* $Id: dev_net.c,v 1.2 1999/01/11 05:11:30 millert Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -189,7 +189,7 @@ machdep_common_ether(ether) int i; if (ea == NULL) - panic ("ERROR: ethernet address not set!\n"); + panic ("ERROR: ethernet address not set!"); else printf ("Try to parse %s\n", ea); @@ -202,7 +202,7 @@ machdep_common_ether(ether) else if (*ea >= 'A' && *ea <= 'F') c = *ea - 'A' + 10; else - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; if (i == 5 && *ea == 0) break; @@ -220,10 +220,10 @@ machdep_common_ether(ether) else if (*ea >= 'A' && *ea <= 'F') c |= *ea - 'A' + 10; else - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; if (i != 5 && *ea != ':') - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; *ether++ = c; } diff --git a/sys/arch/kbus/stand/netboot/if_le.c b/sys/arch/kbus/stand/netboot/if_le.c index 4901da5fd44..68b8ea5413f 100644 --- a/sys/arch/kbus/stand/netboot/if_le.c +++ b/sys/arch/kbus/stand/netboot/if_le.c @@ -1,4 +1,4 @@ -/* $Id: if_le.c,v 1.1 1997/10/14 07:25:32 gingold Exp $ */ +/* $Id: if_le.c,v 1.2 1999/01/11 05:11:30 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -170,7 +170,7 @@ le_error(nif, str, ler1) printf ("le_error (%s) C0: %b\n", str, ler1->ler1_rdp, LE_C0_BITS); /* ler1->ler1_rap = LE_CSRO done in caller */ if (ler1->ler1_rdp & LE_C0_BABL) - panic("le%d: been babbling, found by '%s'\n", + panic("le%d: been babbling, found by '%s'", nif->nif_unit, str); if (ler1->ler1_rdp & LE_C0_CERR) { le_stats.collision_error++; @@ -314,12 +314,12 @@ le_poll(desc, pkt, len) goto cleanup; } if ((rmd->rmd1_bits & (LE_R1_STP | LE_R1_ENP)) != (LE_R1_STP | LE_R1_ENP)) - panic("le_poll: chained packet\n"); + panic("le_poll: chained packet"); length = rmd->rmd3; if (length >= LEMTU) { length = 0; - panic("csr0 when bad things happen: %x\n", ler1->ler1_rdp); + panic("csr0 when bad things happen: %x", ler1->ler1_rdp); goto cleanup; } if (!length) diff --git a/sys/arch/kbus/stand/sk/dev_net.c b/sys/arch/kbus/stand/sk/dev_net.c index bffda185afa..64371891759 100644 --- a/sys/arch/kbus/stand/sk/dev_net.c +++ b/sys/arch/kbus/stand/sk/dev_net.c @@ -1,4 +1,4 @@ -/* $Id: dev_net.c,v 1.1 1997/10/14 07:25:31 gingold Exp $ */ +/* $Id: dev_net.c,v 1.2 1999/01/11 05:11:31 millert Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -189,7 +189,7 @@ machdep_common_ether(ether) int i; if (ea == NULL) - panic ("ERROR: ethernet address not set!\n"); + panic ("ERROR: ethernet address not set!"); else printf ("Try to parse %s\n", ea); @@ -202,7 +202,7 @@ machdep_common_ether(ether) else if (*ea >= 'A' && *ea <= 'F') c = *ea - 'A' + 10; else - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; if (i == 5 && *ea == 0) break; @@ -220,10 +220,10 @@ machdep_common_ether(ether) else if (*ea >= 'A' && *ea <= 'F') c |= *ea - 'A' + 10; else - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; if (i != 5 && *ea != ':') - panic ("Bad character for enet addr (%s)\n", ea); + panic ("Bad character for enet addr (%s)", ea); ea++; *ether++ = c; } diff --git a/sys/arch/kbus/stand/sk/if_le.c b/sys/arch/kbus/stand/sk/if_le.c index 0fa04fad29f..b295a091246 100644 --- a/sys/arch/kbus/stand/sk/if_le.c +++ b/sys/arch/kbus/stand/sk/if_le.c @@ -1,4 +1,4 @@ -/* $Id: if_le.c,v 1.1 1997/10/14 07:25:31 gingold Exp $ */ +/* $Id: if_le.c,v 1.2 1999/01/11 05:11:31 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -172,7 +172,7 @@ le_error(nif, str, ler1) printf ("le_error (%s) C0: %b\n", str, ler1->ler1_rdp, LE_C0_BITS); /* ler1->ler1_rap = LE_CSRO done in caller */ if (ler1->ler1_rdp & LE_C0_BABL) - panic("le%d: been babbling, found by '%s'\n", + panic("le%d: been babbling, found by '%s'", nif->nif_unit, str); if (ler1->ler1_rdp & LE_C0_CERR) { le_stats.collision_error++; @@ -315,12 +315,12 @@ le_poll(desc, pkt, len) goto cleanup; } if ((rmd->rmd1_bits & (LE_R1_STP | LE_R1_ENP)) != (LE_R1_STP | LE_R1_ENP)) - panic("le_poll: chained packet\n"); + panic("le_poll: chained packet"); length = rmd->rmd3; if (length >= LEMTU) { length = 0; - panic("csr0 when bad things happen: %x\n", ler1->ler1_rdp); + panic("csr0 when bad things happen: %x", ler1->ler1_rdp); goto cleanup; } if (!length) @@ -578,13 +578,13 @@ le_intr (void) goto cleanup; } if ((rmd->rmd1_bits & (LE_R1_STP | LE_R1_ENP)) != (LE_R1_STP | LE_R1_ENP)) - panic("le_poll: chained packet\n"); + panic("le_poll: chained packet"); length = rmd->rmd3; if (length >= LEMTU) { length = 0; - panic("csr0 when bad things happen: %x\n", ler1->ler1_rdp); + panic("csr0 when bad things happen: %x", ler1->ler1_rdp); goto cleanup; } if (!length) diff --git a/sys/arch/m68k/fpe/fpu_calcea.c b/sys/arch/m68k/fpe/fpu_calcea.c index f389e94645d..041b7adf4dd 100644 --- a/sys/arch/m68k/fpe/fpu_calcea.c +++ b/sys/arch/m68k/fpe/fpu_calcea.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_calcea.c,v 1.5 1997/02/13 21:49:15 kstailey Exp $ */ +/* $OpenBSD: fpu_calcea.c,v 1.6 1999/01/11 05:11:33 millert Exp $ */ /* $NetBSD: fpu_calcea.c,v 1.7 1996/10/16 06:27:05 scottr Exp $ */ /* @@ -70,7 +70,7 @@ fpu_decode_ea(frame, insn, ea, modreg) #ifdef DEBUG if (insn->is_datasize < 0) { - panic("decode_ea: called with uninitialized datasize\n"); + panic("decode_ea: called with uninitialized datasize"); } #endif diff --git a/sys/arch/m68k/fpe/fpu_fmovecr.c b/sys/arch/m68k/fpe/fpu_fmovecr.c index 42de32f45ec..4aefe66b1a1 100644 --- a/sys/arch/m68k/fpe/fpu_fmovecr.c +++ b/sys/arch/m68k/fpe/fpu_fmovecr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_fmovecr.c,v 1.4 1997/01/13 11:51:05 niklas Exp $ */ +/* $OpenBSD: fpu_fmovecr.c,v 1.5 1999/01/11 05:11:33 millert Exp $ */ /* $NetBSD: fpu_fmovecr.c,v 1.6 1996/10/13 03:19:13 christos Exp $ */ /* @@ -73,7 +73,7 @@ fpu_const(fp, offset) #ifdef DEBUG if (fp == NULL) { - panic("fpu_const: NULL pointer passed\n"); + panic("fpu_const: NULL pointer passed"); } #endif if (offset == 0) { diff --git a/sys/arch/mac68k/dev/grf_iv.c b/sys/arch/mac68k/dev/grf_iv.c index abb9092698a..3c62606d8da 100644 --- a/sys/arch/mac68k/dev/grf_iv.c +++ b/sys/arch/mac68k/dev/grf_iv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf_iv.c,v 1.17 1998/05/03 07:12:55 gene Exp $ */ +/* $OpenBSD: grf_iv.c,v 1.18 1999/01/11 05:11:34 millert Exp $ */ /* $NetBSD: grf_iv.c,v 1.17 1997/02/20 00:23:27 scottr Exp $ */ /* @@ -98,7 +98,7 @@ grfiv_match(parent, vcf, aux) if (bus_space_map(oa->oa_tag, QUADRA_DAFB_BASE, 0x1000, 0, &bsh)) { - panic("failed to map space for DAFB regs.\n"); + panic("failed to map space for DAFB regs."); } if (mac68k_bus_space_probe(oa->oa_tag, bsh, 0x1C, 4) == 0) { @@ -161,7 +161,7 @@ grfiv_attach(parent, self, aux) sc->sc_tag = oa->oa_tag; if (bus_space_map(sc->sc_tag, QUADRA_DAFB_BASE, 0x1000, 0, &sc->sc_regh)) { - panic("failed to map space for DAFB regs.\n"); + panic("failed to map space for DAFB regs."); } printf(": DAFB: Monitor sense %x.\n", R4(sc,0x1C)&7); break; diff --git a/sys/arch/mac68k/dev/if_sn.c b/sys/arch/mac68k/dev/if_sn.c index c9c11d9a523..b192407a9c3 100644 --- a/sys/arch/mac68k/dev/if_sn.c +++ b/sys/arch/mac68k/dev/if_sn.c @@ -736,7 +736,7 @@ camprogram(sc) continue; if (timeout == 0) { /* XXX */ - panic("%s: CAM initialisation failed\n", sc->sc_dev.dv_xname); + panic("%s: CAM initialisation failed", sc->sc_dev.dv_xname); } timeout = 10000; while (((NIC_GET(sc, SNR_ISR) & ISR_LCD) == 0) && timeout--) diff --git a/sys/arch/mac68k/dev/mac68k5380.c b/sys/arch/mac68k/dev/mac68k5380.c index 5e7b6ce6927..d6bf498bef4 100644 --- a/sys/arch/mac68k/dev/mac68k5380.c +++ b/sys/arch/mac68k/dev/mac68k5380.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mac68k5380.c,v 1.12 1998/05/03 07:12:59 gene Exp $ */ +/* $OpenBSD: mac68k5380.c,v 1.13 1999/01/11 05:11:34 millert Exp $ */ /* $NetBSD: mac68k5380.c,v 1.29 1997/02/28 15:50:50 scottr Exp $ */ /* @@ -157,7 +157,7 @@ scsi_mach_init(sc) static int initted = 0; if (initted++) - panic("scsi_mach_init called again.\n"); + panic("scsi_mach_init called again."); ncr = (volatile u_char *) (SCSIBase + (u_long) ncr); @@ -312,7 +312,7 @@ extern u_char ncr5380_no_parchk; return 1; } else { scsi_show(); - panic("Spurious interrupt during PDMA xfer.\n"); + panic("Spurious interrupt during PDMA xfer."); } } else PID("pdma_ready4"); @@ -609,7 +609,7 @@ transfer_pdma(phasep, data, count) */ switch (*phasep) { default: - panic("Unexpected phase in transfer_pdma.\n"); + panic("Unexpected phase in transfer_pdma."); case PH_DATAOUT: pdma_5380_dir = 1; SET_5380_REG(NCR5380_ICOM, GET_5380_REG(NCR5380_ICOM)|SC_ADTB); diff --git a/sys/arch/mac68k/dev/ncr5380.c b/sys/arch/mac68k/dev/ncr5380.c index 17430effca8..63062bea3fd 100644 --- a/sys/arch/mac68k/dev/ncr5380.c +++ b/sys/arch/mac68k/dev/ncr5380.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr5380.c,v 1.14 1997/03/08 16:16:55 briggs Exp $ */ +/* $OpenBSD: ncr5380.c,v 1.15 1999/01/11 05:11:35 millert Exp $ */ /* $NetBSD: ncr5380.c,v 1.38 1996/12/19 21:48:18 scottr Exp $ */ /* @@ -656,7 +656,7 @@ struct ncr_softc *sc; #else if (pdma_ready()) return; - panic("Got DMA interrupt without DMA\n"); + panic("Got DMA interrupt without DMA"); #endif } scsi_clr_ipend(); diff --git a/sys/arch/mac68k/dev/sbc.c b/sys/arch/mac68k/dev/sbc.c index 0ccf2456fca..5bd426d17f8 100644 --- a/sys/arch/mac68k/dev/sbc.c +++ b/sys/arch/mac68k/dev/sbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbc.c,v 1.11 1998/05/03 07:13:01 gene Exp $ */ +/* $OpenBSD: sbc.c,v 1.12 1999/01/11 05:11:35 millert Exp $ */ /* $NetBSD: sbc.c,v 1.24 1997/04/18 17:38:08 scottr Exp $ */ /* @@ -602,7 +602,7 @@ sbc_dma_alloc(ncr_sc) /* Make sure our caller checked sc_min_dma_len. */ if (xlen < MIN_DMA_LEN) - panic("sbc_dma_alloc: len=0x%x\n", xlen); + panic("sbc_dma_alloc: len=0x%x", xlen); /* * Find free PDMA handle. Guaranteed to find one since we @@ -750,7 +750,7 @@ sbc_dma_stop(ncr_sc) #endif if (ntrans > ncr_sc->sc_datalen) - panic("sbc_dma_stop: excess transfer\n"); + panic("sbc_dma_stop: excess transfer"); /* Adjust data pointer */ ncr_sc->sc_dataptr += ntrans; diff --git a/sys/arch/mac68k/dev/zs.c b/sys/arch/mac68k/dev/zs.c index 8bb4bce65ad..d358f031f4e 100644 --- a/sys/arch/mac68k/dev/zs.c +++ b/sys/arch/mac68k/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.11 1998/05/03 07:13:03 gene Exp $ */ +/* $OpenBSD: zs.c,v 1.12 1999/01/11 05:11:35 millert Exp $ */ /* $NetBSD: zs.c,v 1.12 1996/12/18 05:04:22 scottr Exp $ */ /* @@ -254,7 +254,7 @@ zsc_attach(parent, self, aux) /* Make sure everything's inited ok. */ if (zsaddr[zsc_unit] == NULL) - panic("zs_attach: zs%d not mapped\n", zsc_unit); + panic("zs_attach: zs%d not mapped", zsc_unit); /* * Initialize software state for each channel. diff --git a/sys/arch/mac68k/mac68k/bus_space.c b/sys/arch/mac68k/mac68k/bus_space.c index 9d6d5a5851f..f5fd543339e 100644 --- a/sys/arch/mac68k/mac68k/bus_space.c +++ b/sys/arch/mac68k/mac68k/bus_space.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_space.c,v 1.1 1998/04/27 02:01:45 gene Exp $ */ +/* $OpenBSD: bus_space.c,v 1.2 1999/01/11 05:11:36 millert Exp $ */ /* $NetBSD: bus_space.c,v 1.2 1998/04/24 05:27:24 scottr Exp $ */ /*- @@ -280,7 +280,7 @@ mac68k_bus_space_probe(t, bsh, offset, sz) break; case 8: default: - panic("bus_space_probe: unsupported data size %d\n", sz); + panic("bus_space_probe: unsupported data size %d", sz); /* NOTREACHED */ } diff --git a/sys/arch/mac68k/mac68k/macrom.c b/sys/arch/mac68k/mac68k/macrom.c index d4b34d527b8..a4de5f7553c 100644 --- a/sys/arch/mac68k/mac68k/macrom.c +++ b/sys/arch/mac68k/mac68k/macrom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macrom.c,v 1.19 1998/05/03 07:16:50 gene Exp $ */ +/* $OpenBSD: macrom.c,v 1.20 1999/01/11 05:11:36 millert Exp $ */ /* $NetBSD: macrom.c,v 1.31 1997/03/01 17:20:34 scottr Exp $ */ /*- @@ -269,7 +269,7 @@ mrg_init_stub_1() void mrg_init_stub_2() { - panic("mrg: hit mrg_init_stub_2\n"); + panic("mrg: hit mrg_init_stub_2"); } short @@ -286,7 +286,7 @@ Count_Resources(u_int32_t rsrc_type) * Return a Count of all the ROM Resouces of the requested type. */ if (ROMResourceMap == 0) - panic("Oops! Need ROM Resource Map ListHead address!\n"); + panic("Oops! Need ROM Resource Map ListHead address!"); while (rsrc != 0) { #if defined(MRG_DEBUG) @@ -321,7 +321,7 @@ Get_Ind_Resource(u_int32_t rsrc_type, u_int16_t rsrc_ind) */ if (ROMResourceMap == 0) - panic("Oops! Need ROM Resource Map ListHead address!\n"); + panic("Oops! Need ROM Resource Map ListHead address!"); while (rsrc != 0) { if (rsrc_type == rsrc->name) { @@ -333,7 +333,7 @@ Get_Ind_Resource(u_int32_t rsrc_type, u_int16_t rsrc_ind) ResHndls[i] = (caddr_t)(rsrc->body + ROMBase); return (caddr_t *)&ResHndls[i]; } - panic("ResHndls table too small!\n"); + panic("ResHndls table too small!"); } } rsrc = rsrc->next == 0 ? 0 : (rsrc_t *)(rsrc->next + ROMBase); @@ -344,13 +344,13 @@ Get_Ind_Resource(u_int32_t rsrc_type, u_int16_t rsrc_ind) void mrg_FixDiv() { - panic("Oops! Need ROM address of _FixDiv for this system!\n"); + panic("Oops! Need ROM address of _FixDiv for this system!"); } void mrg_FixMul() { - panic("Oops! Need ROM address of _FixMul for this system!\n"); + panic("Oops! Need ROM address of _FixMul for this system!"); } void @@ -373,25 +373,25 @@ mrg_lvl1dtpanic() /* Lvl1DT stopper */ void mrg_lvl2dtpanic() /* Lvl2DT stopper */ { - panic("Agh! I was called from Lvl2DT!!!\n"); + panic("Agh! I was called from Lvl2DT!!!"); } void mrg_jadbprocpanic() /* JADBProc stopper */ { - panic("Agh! Called JADBProc!\n"); + panic("Agh! Called JADBProc!"); } void mrg_jswapmmupanic() /* jSwapMMU stopper */ { - panic("Agh! Called jSwapMMU!\n"); + panic("Agh! Called jSwapMMU!"); } void mrg_jkybdtaskpanic() /* JKybdTask stopper */ { - panic("Agh! Called JKybdTask!\n"); + panic("Agh! Called JKybdTask!"); } #ifdef MRG_ADB /* mrg_adbintr and mrg_pmintr are not defined @@ -461,7 +461,7 @@ void mrg_notrap() { printf("Aigh!\n"); - panic("mrg_notrap: We're doomed!\n"); + panic("mrg_notrap: We're doomed!"); } int @@ -859,7 +859,7 @@ mrg_init() : "=g" (rcnt)); printf("mrg: %d are DRVR resources\n", rcnt); if (rcnt == 0) - panic("Oops! No DRVR Resources found in ROM\n"); + panic("Oops! No DRVR Resources found in ROM"); } #endif #if defined(MRG_TEST) @@ -951,7 +951,7 @@ mrg_init() if(TimeDBRA == 0) TimeDBRA = 0xa3b; /* BARF default is Mac II */ if(ROMBase == 0) - panic("ROMBase not set in mrg_init()!\n"); + panic("ROMBase not set in mrg_init()!"); strcpy(&FinderName[1], findername); FinderName[0] = (u_char) strlen(findername); diff --git a/sys/arch/mac68k/mac68k/pmap.c b/sys/arch/mac68k/mac68k/pmap.c index 127cc5ab752..779445637f8 100644 --- a/sys/arch/mac68k/mac68k/pmap.c +++ b/sys/arch/mac68k/mac68k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.10 1998/05/03 07:16:51 gene Exp $ */ +/* $OpenBSD: pmap.c,v 1.11 1999/01/11 05:11:36 millert Exp $ */ /* $NetBSD: pmap.c,v 1.28 1996/10/21 05:42:27 scottr Exp $ */ /* @@ -364,7 +364,7 @@ pmap_init() mac68k_ptob(IIOMAPSIZE + ROMMAPSIZE + NBMAPSIZE), FALSE); if (addr != (vm_offset_t)IOBase) - panic("pmap_init: I/O space not mapped!\n"); + panic("pmap_init: I/O space not mapped!"); addr = (vm_offset_t) Sysmap; vm_object_reference(kernel_object); @@ -376,7 +376,7 @@ pmap_init() * page table map. Need to adjust pmap_size() in mac68k_init.c. */ if (addr != (vm_offset_t)Sysmap) - panic("pmap_init: bogons in the VM system!\n"); + panic("pmap_init: bogons in the VM system!"); #ifdef DEBUG if (pmapdebug & PDB_INIT) { diff --git a/sys/arch/mac68k/mac68k/pmap_bootstrap.c b/sys/arch/mac68k/mac68k/pmap_bootstrap.c index 21060af0854..3e87a4fc0d8 100644 --- a/sys/arch/mac68k/mac68k/pmap_bootstrap.c +++ b/sys/arch/mac68k/mac68k/pmap_bootstrap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap_bootstrap.c,v 1.9 1998/05/03 07:16:52 gene Exp $ */ +/* $OpenBSD: pmap_bootstrap.c,v 1.10 1999/01/11 05:11:37 millert Exp $ */ /* $NetBSD: pmap_bootstrap.c,v 1.30 1997/01/07 07:44:01 scottr Exp $ */ /* @@ -186,7 +186,7 @@ pmap_bootstrap(nextpa, firstpa) printf("You're hosed! Try booting with 32-bit addressing "); printf("enabled in the memory control panel.\n"); printf("Older machines may need Mode32 to get that option.\n"); - panic("Cannot work with the current memory mappings.\n"); + panic("Cannot work with the current memory mappings."); } /* @@ -612,7 +612,7 @@ bootstrap_mac68k(tc) printf("Pmap bootstrapped.\n"); if (!vidlen) - panic("Don't know how to relocate video!\n"); + panic("Don't know how to relocate video!"); if (mac68k_machine.do_graybars) printf("Moving ROMBase from %p to %p.\n", diff --git a/sys/arch/mac68k/mac68k/trap.c b/sys/arch/mac68k/mac68k/trap.c index fa8b61f0e73..c6e735d3181 100644 --- a/sys/arch/mac68k/mac68k/trap.c +++ b/sys/arch/mac68k/mac68k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.14 1998/03/05 05:06:09 gene Exp $ */ +/* $OpenBSD: trap.c,v 1.15 1999/01/11 05:11:37 millert Exp $ */ /* $NetBSD: trap.c,v 1.46 1997/04/07 22:54:44 scottr Exp $ */ /* @@ -266,7 +266,7 @@ trap(type, code, v, frame) p = &proc0; #ifdef DIAGNOSTIC if (p->p_addr == NULL) - panic("trap: type 0x%x, code 0x%x, v 0x%x--no pcb\n", + panic("trap: type 0x%x, code 0x%x, v 0x%x--no pcb", type, code, v); #endif diff --git a/sys/arch/mvme68k/dev/if_ie.c b/sys/arch/mvme68k/dev/if_ie.c index c24c082d865..a630770fce1 100644 --- a/sys/arch/mvme68k/dev/if_ie.c +++ b/sys/arch/mvme68k/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.7 1996/05/29 17:54:11 chuck Exp $ */ +/* $OpenBSD: if_ie.c,v 1.8 1999/01/11 05:11:38 millert Exp $ */ /*- * Copyright (c) 1995 Theo de Raadt @@ -1403,7 +1403,7 @@ iereset(sc) #ifdef notdef if (!check_ie_present(sc, sc->sc_maddr, sc->sc_msize)) - panic("ie disappeared!\n"); + panic("ie disappeared!"); #endif sc->sc_arpcom.ac_if.if_flags |= IFF_UP; @@ -1593,7 +1593,7 @@ setup_bufs(sc) sc->nframes = n / r; if (sc->nframes <= 0) - panic("ie: bogus buffer calc\n"); + panic("ie: bogus buffer calc"); if (sc->nframes > MXFRAMES) sc->nframes = MXFRAMES; diff --git a/sys/arch/mvme68k/dev/nvram.c b/sys/arch/mvme68k/dev/nvram.c index 708aa23490f..0559a963eb6 100644 --- a/sys/arch/mvme68k/dev/nvram.c +++ b/sys/arch/mvme68k/dev/nvram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvram.c,v 1.4 1996/06/11 10:15:16 deraadt Exp $ */ +/* $OpenBSD: nvram.c,v 1.5 1999/01/11 05:11:38 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -96,7 +96,7 @@ nvramattach(parent, self, args) /*X*/ sc->sc_vaddr = mapiodev((void *)sc->sc_paddr, /*X*/ max(sc->sc_len, NBPG)); /*X*/ if (sc->sc_vaddr == NULL) -/*X*/ panic("failed to map!\n"); +/*X*/ panic("failed to map!"); sc->sc_regs = (struct clockreg *)(sc->sc_vaddr + sc->sc_len - sizeof(struct clockreg)); diff --git a/sys/arch/mvme68k/mvme68k/pmap.c b/sys/arch/mvme68k/mvme68k/pmap.c index 4ca075b67fa..f20ef5c9b2b 100644 --- a/sys/arch/mvme68k/mvme68k/pmap.c +++ b/sys/arch/mvme68k/mvme68k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.7 1998/03/01 00:37:44 niklas Exp $ */ +/* $OpenBSD: pmap.c,v 1.8 1999/01/11 05:11:39 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -459,7 +459,7 @@ pmap_init(phys_start, phys_end) */ if (addr != (vm_offset_t)Sysmap) bogons: - panic("pmap_init: bogons in the VM system!\n"); + panic("pmap_init: bogons in the VM system!"); #ifdef DEBUG if (pmapdebug & PDB_INIT) { diff --git a/sys/arch/mvme68k/stand/netboot/dev_net.c b/sys/arch/mvme68k/stand/netboot/dev_net.c index 241b3ac47df..38192ff7626 100644 --- a/sys/arch/mvme68k/stand/netboot/dev_net.c +++ b/sys/arch/mvme68k/stand/netboot/dev_net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_net.c,v 1.6 1996/05/16 02:55:36 chuck Exp $ */ +/* $OpenBSD: dev_net.c,v 1.7 1999/01/11 05:11:41 millert Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -191,7 +191,7 @@ machdep_common_ether(ether) ea = (u_char *) ETHER_ADDR_147; if ((*(int *) ea & 0x2fffff00) == 0x2fffff00) - panic("ERROR: ethernet address not set!\r\n"); + panic("ERROR: ethernet address not set!"); ether[0] = 0x08; ether[1] = 0x00; ether[2] = 0x3e; @@ -202,7 +202,7 @@ machdep_common_ether(ether) ea = (u_char *) ETHER_ADDR_16X; if (ea[0] + ea[1] + ea[2] + ea[3] + ea[4] + ea[5] == 0) - panic("ERROR: ethernet address not set!\r\n"); + panic("ERROR: ethernet address not set!"); ether[0] = ea[0]; ether[1] = ea[1]; ether[2] = ea[2]; diff --git a/sys/arch/mvme68k/stand/netboot/if_ie.c b/sys/arch/mvme68k/stand/netboot/if_ie.c index c688d625fce..feb174df23d 100644 --- a/sys/arch/mvme68k/stand/netboot/if_ie.c +++ b/sys/arch/mvme68k/stand/netboot/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.5 1996/05/16 02:55:36 chuck Exp $ */ +/* $OpenBSD: if_ie.c,v 1.6 1999/01/11 05:11:41 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -150,7 +150,7 @@ ie_error(nif, str, ier) char *str; volatile struct iereg *ier; { - panic("ie%d: unknown error\n", nif->nif_unit); + panic("ie%d: unknown error", nif->nif_unit); } ieack(ier, iem) diff --git a/sys/arch/mvme68k/stand/netboot/if_le.c b/sys/arch/mvme68k/stand/netboot/if_le.c index d3ded1d6070..3ca8000c03f 100644 --- a/sys/arch/mvme68k/stand/netboot/if_le.c +++ b/sys/arch/mvme68k/stand/netboot/if_le.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le.c,v 1.6 1996/05/16 02:55:37 chuck Exp $ */ +/* $OpenBSD: if_le.c,v 1.7 1999/01/11 05:11:41 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -174,7 +174,7 @@ le_error(nif, str, ler1) { /* ler1->ler1_rap = LE_CSRO done in caller */ if (ler1->ler1_rdp & LE_C0_BABL) - panic("le%d: been babbling, found by '%s'\n", nif->nif_unit, str); + panic("le%d: been babbling, found by '%s'", nif->nif_unit, str); if (ler1->ler1_rdp & LE_C0_CERR) { le_stats.collision_error++; ler1->ler1_rdp = LE_C0_CERR; @@ -299,12 +299,12 @@ le_poll(desc, pkt, len) goto cleanup; } if ((rmd->rmd1_bits & (LE_R1_STP | LE_R1_ENP)) != (LE_R1_STP | LE_R1_ENP)) - panic("le_poll: chained packet\n"); + panic("le_poll: chained packet"); length = rmd->rmd3; if (length >= LEMTU) { length = 0; - panic("csr0 when bad things happen: %x\n", ler1->ler1_rdp); + panic("csr0 when bad things happen: %x", ler1->ler1_rdp); goto cleanup; } if (!length) diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index 373c6816961..e568e853b99 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.2 1998/12/15 05:52:29 smurph Exp $ */ +/* $OpenBSD: cl.c,v 1.3 1999/01/11 05:11:42 millert Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -374,7 +374,7 @@ clattach(parent, self, aux) break; default: /* oops */ - panic ("cl driver on unknown bus\n"); + panic ("cl driver on unknown bus"); } evcnt_attach(&sc->sc_dev, "intr", &sc->sc_txintrcnt); diff --git a/sys/arch/mvme88k/dev/if_ie.c b/sys/arch/mvme88k/dev/if_ie.c index b832953497a..3871a4bc9a1 100644 --- a/sys/arch/mvme88k/dev/if_ie.c +++ b/sys/arch/mvme88k/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $Id: if_ie.c,v 1.2 1998/12/15 05:52:30 smurph Exp $ */ +/* $Id: if_ie.c,v 1.3 1999/01/11 05:11:42 millert Exp $ */ /*- * Copyright (c) 1998 Steve Murphree, Jr. @@ -1416,7 +1416,7 @@ iereset(sc) #ifdef notdef if (!check_ie_present(sc, sc->sc_maddr, sc->sc_msize)) - panic("ie disappeared!\n"); + panic("ie disappeared!"); #endif sc->sc_arpcom.ac_if.if_flags |= IFF_UP; @@ -1606,7 +1606,7 @@ setup_bufs(sc) sc->nframes = n / r; if (sc->nframes <= 0) - panic("ie: bogus buffer calc\n"); + panic("ie: bogus buffer calc"); if (sc->nframes > MXFRAMES) sc->nframes = MXFRAMES; diff --git a/sys/arch/mvme88k/dev/nvram.c b/sys/arch/mvme88k/dev/nvram.c index f34640f73f8..61e9373411a 100644 --- a/sys/arch/mvme88k/dev/nvram.c +++ b/sys/arch/mvme88k/dev/nvram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvram.c,v 1.2 1998/12/15 05:52:30 smurph Exp $ */ +/* $OpenBSD: nvram.c,v 1.3 1999/01/11 05:11:43 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -96,7 +96,7 @@ nvramattach(parent, self, args) /*X*/ sc->sc_vaddr = mapiodev((void *)sc->sc_paddr, /*X*/ max(sc->sc_len, NBPG)); /*X*/ if (sc->sc_vaddr == NULL) -/*X*/ panic("failed to map!\n"); +/*X*/ panic("failed to map!"); sc->sc_regs = (struct clockreg *)(sc->sc_vaddr + sc->sc_len - sizeof(struct clockreg)); diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index 07784538ac6..c621af82494 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1175,7 +1175,7 @@ intr_establish(int vec, struct intrhand *ihand) if (vec < 0 || vec > 255) { #if DIAGNOSTIC - panic("intr_establish: vec (%x) not between 0 and 0xff\n", + panic("intr_establish: vec (%x) not between 0 and 0xff", vec); #endif /* DIAGNOSTIC */ return (INTR_EST_BADVEC); @@ -1184,7 +1184,7 @@ intr_establish(int vec, struct intrhand *ihand) if (intr = intr_handlers[vec]) { if (intr->ih_ipl != ihand->ih_ipl) { #if DIAGNOSTIC - panic("intr_establish: there are other handlers with vec (%x) at ipl %x, but you want it at %x\n", + panic("intr_establish: there are other handlers with vec (%x) at ipl %x, but you want it at %x", intr->ih_ipl, vec, ihand->ih_ipl); #endif /* DIAGNOSTIC */ return (INTR_EST_BADIPL); @@ -1260,7 +1260,7 @@ ext_int(u_int v, struct m88100_saved_state *eframe) asm volatile("st.b %1,%0" : "=m" (*pcc2intr_mask) : "r" (level)); #endif if (level > 7 || (char)level < 0) { - panic("int level (%x) is not between 0 and 7\n", level); + panic("int level (%x) is not between 0 and 7", level); } /* generate IACK and get the vector */ @@ -1292,7 +1292,7 @@ ext_int(u_int v, struct m88100_saved_state *eframe) /*vec = xxxvec;*/ if (vec > 0xFF) { - panic("interrupt vector %x greater than 255\n", vec); + panic("interrupt vector %x greater than 255", vec); } enable_interrupt(); @@ -1302,7 +1302,7 @@ ext_int(u_int v, struct m88100_saved_state *eframe) level, vec); } if (intr && intr->ih_ipl != level) { - panic("Handler ipl %x not the same as level %x\n", + panic("Handler ipl %x not the same as level %x", intr->ih_ipl, level); } diff --git a/sys/arch/mvme88k/mvme88k/pmap.c b/sys/arch/mvme88k/mvme88k/pmap.c index b26b7a9d783..70738631e2b 100644 --- a/sys/arch/mvme88k/mvme88k/pmap.c +++ b/sys/arch/mvme88k/mvme88k/pmap.c @@ -995,7 +995,7 @@ pmap_bootstrap(vm_offset_t load_start, /* IN */ panic("pmap_bootstrap: VM page size < MACHINE page size"); } if (!PAGE_ALIGNED(load_start)) { - panic("pmap_bootstrap : \"load_start\" not on the m88k page boundary : 0x%x\n", load_start); + panic("pmap_bootstrap : \"load_start\" not on the m88k page boundary : 0x%x", load_start); } /* @@ -5155,7 +5155,7 @@ pmap_set_batc( register batc_template_t batctmp; if (i < 0 || i > (BATC_MAX - 1)) { - panic("pmap_set_batc: illegal batc number\n"); + panic("pmap_set_batc: illegal batc number"); /* bad number */ return; } diff --git a/sys/arch/mvme88k/stand/netboot/dev_net.c b/sys/arch/mvme88k/stand/netboot/dev_net.c index 16a494e7692..35bb7fdd7c7 100644 --- a/sys/arch/mvme88k/stand/netboot/dev_net.c +++ b/sys/arch/mvme88k/stand/netboot/dev_net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_net.c,v 1.2 1998/08/22 08:37:56 smurph Exp $ */ +/* $OpenBSD: dev_net.c,v 1.3 1999/01/11 05:11:46 millert Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -190,7 +190,7 @@ machdep_common_ether(ether) ea = (u_char *) ETHER_ADDR_16X; if (ea[0] + ea[1] + ea[2] + ea[3] + ea[4] + ea[5] == 0) - panic("ERROR: ethernet address not set!\r\n"); + panic("ERROR: ethernet address not set!"); ether[0] = ea[0]; ether[1] = ea[1]; ether[2] = ea[2]; diff --git a/sys/arch/mvme88k/stand/netboot/if_ie.c b/sys/arch/mvme88k/stand/netboot/if_ie.c index d9003693331..430629ba607 100644 --- a/sys/arch/mvme88k/stand/netboot/if_ie.c +++ b/sys/arch/mvme88k/stand/netboot/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.3 1998/12/15 06:32:35 smurph Exp $ */ +/* $OpenBSD: if_ie.c,v 1.4 1999/01/11 05:11:46 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -146,7 +146,7 @@ ie_error(nif, str, ier) char *str; volatile struct iereg *ier; { - panic("ie%d: unknown error\n", nif->nif_unit); + panic("ie%d: unknown error", nif->nif_unit); } ieack(ier, iem) diff --git a/sys/arch/mvme88k/stand/netboot/if_le.c b/sys/arch/mvme88k/stand/netboot/if_le.c index 3f3e4e556d8..4775ea59e55 100644 --- a/sys/arch/mvme88k/stand/netboot/if_le.c +++ b/sys/arch/mvme88k/stand/netboot/if_le.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le.c,v 1.2 1998/08/22 08:38:02 smurph Exp $ */ +/* $OpenBSD: if_le.c,v 1.3 1999/01/11 05:11:46 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -170,7 +170,7 @@ le_error(nif, str, ler1) { /* ler1->ler1_rap = LE_CSRO done in caller */ if (ler1->ler1_rdp & LE_C0_BABL) - panic("le%d: been babbling, found by '%s'\n", nif->nif_unit, str); + panic("le%d: been babbling, found by '%s'", nif->nif_unit, str); if (ler1->ler1_rdp & LE_C0_CERR) { le_stats.collision_error++; ler1->ler1_rdp = LE_C0_CERR; @@ -295,12 +295,12 @@ le_poll(desc, pkt, len) goto cleanup; } if ((rmd->rmd1_bits & (LE_R1_STP | LE_R1_ENP)) != (LE_R1_STP | LE_R1_ENP)) - panic("le_poll: chained packet\n"); + panic("le_poll: chained packet"); length = rmd->rmd3; if (length >= LEMTU) { length = 0; - panic("csr0 when bad things happen: %x\n", ler1->ler1_rdp); + panic("csr0 when bad things happen: %x", ler1->ler1_rdp); goto cleanup; } if (!length) diff --git a/sys/arch/pc532/dev/ncr5380.c b/sys/arch/pc532/dev/ncr5380.c index d243a444f02..cfd3dc4a12d 100644 --- a/sys/arch/pc532/dev/ncr5380.c +++ b/sys/arch/pc532/dev/ncr5380.c @@ -666,7 +666,7 @@ struct ncr_softc *sc; #else if (pdma_ready()) return; - panic("Got DMA interrupt without DMA\n"); + panic("Got DMA interrupt without DMA"); #endif } scsi_clr_ipend(); diff --git a/sys/arch/pc532/stand/inflate.c b/sys/arch/pc532/stand/inflate.c index 3ebe08c086a..a8036c731a5 100644 --- a/sys/arch/pc532/stand/inflate.c +++ b/sys/arch/pc532/stand/inflate.c @@ -31,7 +31,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: inflate.c,v 1.1 1995/10/18 08:51:23 deraadt Exp $ + * $Id: inflate.c,v 1.2 1999/01/11 05:11:48 millert Exp $ */ #include <sys/param.h> @@ -205,7 +205,7 @@ void nextstate() switch (state) { case 0: if (N_BADMAG(x)) - panic("Bad exec format\n"); + panic("Bad exec format"); load = addr = (uch *)(x.a_entry & 0x00ffff00); printf("Uncompressing @ 0x%x\n", addr); bsize = x.a_text; diff --git a/sys/arch/pmax/dev/lk201.c b/sys/arch/pmax/dev/lk201.c index 0719e8f2e3e..b03d7398cc6 100644 --- a/sys/arch/pmax/dev/lk201.c +++ b/sys/arch/pmax/dev/lk201.c @@ -331,7 +331,7 @@ LKgetc(dev) #endif if (raw_kbd_getc == NULL) { - panic("Reading from LK-201 before keyboard driver diverted\n"); + panic("Reading from LK-201 before keyboard driver diverted"); return (-1); } diff --git a/sys/arch/pmax/dev/qvss_compat.c b/sys/arch/pmax/dev/qvss_compat.c index 28e891d3ba0..6692e6370bb 100644 --- a/sys/arch/pmax/dev/qvss_compat.c +++ b/sys/arch/pmax/dev/qvss_compat.c @@ -144,7 +144,7 @@ init_pmaxfbu(fi) register struct fbuaccess *fbu = NULL; if (fi == NULL || fi->fi_fbu == NULL) - panic("init_pmaxfb: given null pointer to framebuffer\n"); + panic("init_pmaxfb: given null pointer to framebuffer"); /* XXX don't rely on there being a pmax_fb struct */ fbu = fi->fi_fbu; diff --git a/sys/arch/pmax/pmax/conf-glue.c b/sys/arch/pmax/pmax/conf-glue.c index f4593208872..691d6535a40 100644 --- a/sys/arch/pmax/pmax/conf-glue.c +++ b/sys/arch/pmax/pmax/conf-glue.c @@ -165,7 +165,7 @@ pmax_add_scsi(dp, unit) { struct pmax_ctlr *cp = &pmax_scsi_table[nscsi++]; if (nscsi > MAX_SCSI) { - panic("Too many old-style SCSI adaptors\n"); + panic("Too many old-style SCSI adaptors"); } cp->pmax_driver = dp; cp->pmax_unit = unit; @@ -244,7 +244,7 @@ noattach(parent, self, aux) ca->ca_name, self->dv_unit, parent->dv_xname); #else - panic("Can't do new-config attach of old device %s%d\n", + panic("Can't do new-config attach of old device %s%d", ca->ca_name, self->dv_unit); #endif return; diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c index c104d16a6f5..81adb5a7775 100644 --- a/sys/arch/pmax/pmax/machdep.c +++ b/sys/arch/pmax/pmax/machdep.c @@ -1615,7 +1615,7 @@ kn02_enable_intr(slotno, handler, sc, on) #endif if (slotno > TC_MAX_LOGICAL_SLOTS) - panic("kn02_enable_intr: bogus slot %d\n", slotno); + panic("kn02_enable_intr: bogus slot %d", slotno); if (on) { /*printf("kn02: slot %d handler 0x%x\n", slotno, handler);*/ diff --git a/sys/arch/pmax/pmax/mainbus.c b/sys/arch/pmax/pmax/mainbus.c index 297a1a33a83..6f24dc95147 100644 --- a/sys/arch/pmax/pmax/mainbus.c +++ b/sys/arch/pmax/pmax/mainbus.c @@ -204,7 +204,7 @@ kn01_attach(parent, self, aux) } if (nca->ca_name == NULL) { - panic("No name for mainbus device\n"); + panic("No name for mainbus device"); } #if defined(DIAGNOSTIC) || defined(DEBUG) diff --git a/sys/arch/pmax/pmax/mips_machdep.c b/sys/arch/pmax/pmax/mips_machdep.c index 8cc3efa2692..ef2c37dec4c 100644 --- a/sys/arch/pmax/pmax/mips_machdep.c +++ b/sys/arch/pmax/pmax/mips_machdep.c @@ -193,7 +193,7 @@ void mips_vector_init() #endif /* MIPS3 */ default: - panic("Unconfigured or unsupported MIPS cpu\n"); + panic("Unconfigured or unsupported MIPS cpu"); } } diff --git a/sys/arch/pmax/pmax/vm_machdep.c b/sys/arch/pmax/pmax/vm_machdep.c index 079b33bc47f..e3a8162c9e6 100644 --- a/sys/arch/pmax/pmax/vm_machdep.c +++ b/sys/arch/pmax/pmax/vm_machdep.c @@ -390,7 +390,7 @@ kvtophys(vm_offset_t kva) printf("Virtual address %lx: cannot map to physical\n", kva); phys = 0; - /*panic("non-kernel address to kvtophys\n");*/ + /*panic("non-kernel address to kvtophys");*/ return(kva); /* XXX -- while debugging ASC */ } return(phys); diff --git a/sys/arch/pmax/tc/asic.c b/sys/arch/pmax/tc/asic.c index 7cb367b7dae..407a4b17fa5 100644 --- a/sys/arch/pmax/tc/asic.c +++ b/sys/arch/pmax/tc/asic.c @@ -188,7 +188,7 @@ asicattach(parent, self, aux) extern int cputype; if (asic_slots == NULL) - panic("asicattach: no asic_slot map\n"); + panic("asicattach: no asic_slot map"); IOASIC_DPRINTF(("asicattach: %s\n", sc->sc_dv.dv_xname)); @@ -225,7 +225,7 @@ asicattach(parent, self, aux) i, sc->sc_base)); nca = &asic_slots[i].as_ca; - if (nca == NULL) panic ("bad asic table\n"); + if (nca == NULL) panic ("bad asic table"); if (nca->ca_name == NULL || nca->ca_name[0] == 0) break; nca->ca_addr = ((u_int)sc->sc_base) + nca->ca_offset; @@ -325,7 +325,7 @@ asic_intr_disestablish(ca) { #ifdef pmax - panic("asic_intr_disestablish: shouldn't ever be called\n"); + panic("asic_intr_disestablish: shouldn't ever be called"); #else if (ca->ca_slot == IOASIC_SLOT_RTC) panic("asic_intr_disestablish: can't do clock interrupt"); @@ -396,7 +396,7 @@ asic_intrnull(val) intr_arg_t val; { - panic("uncaught IOCTL ASIC intr for slot %ld\n", (long)val); + panic("uncaught IOCTL ASIC intr for slot %ld", (long)val); } diff --git a/sys/arch/pmax/tc/tc.c b/sys/arch/pmax/tc/tc.c index 8a0654b7995..acd4c69d074 100644 --- a/sys/arch/pmax/tc/tc.c +++ b/sys/arch/pmax/tc/tc.c @@ -167,7 +167,7 @@ cpu_tcdesc(cpu) printf("tcattach: Mipsfair (5100), no turbochannel\n"); return NULL; } else { - panic("cpu_tc: Unrecognized bus type 0x%x\n", cpu); + panic("cpu_tc: Unrecognized bus type 0x%x", cpu); } } @@ -309,7 +309,7 @@ tc_ds_intr_establish(dev, cookie, level, handler, val) #ifdef DIAGNOSTIC if (tc_enable_interrupt == NULL) - panic("tc_intr_establish: tc_enable not set\n"); + panic("tc_intr_establish: tc_enable not set"); #endif #ifdef DEBUG diff --git a/sys/arch/pmax/tc/tc_subr.c b/sys/arch/pmax/tc/tc_subr.c index 6e01cb20a21..0cc3fed6fe2 100644 --- a/sys/arch/pmax/tc/tc_subr.c +++ b/sys/arch/pmax/tc/tc_subr.c @@ -307,7 +307,7 @@ cpu_tcdesc(cpu) printf("tcattach: Mipsfair (5100), no turbochannel\n"); return NULL; } else { - panic("cpu_tc: Unrecognized bus type 0x%x\n", cpu); + panic("cpu_tc: Unrecognized bus type 0x%x", cpu); } } @@ -458,7 +458,7 @@ tc_ds_intr_establish(dev, cookie, level, handler, val) #ifdef DIAGNOSTIC if (tc_enable_interrupt == NULL) - panic("tc_intr_establish: tc_enable not set\n"); + panic("tc_intr_establish: tc_enable not set"); #endif #ifdef DEBUG diff --git a/sys/arch/powerpc/pci/mpcpcibus.c b/sys/arch/powerpc/pci/mpcpcibus.c index a3b4df2ce3f..69d3e43dc70 100644 --- a/sys/arch/powerpc/pci/mpcpcibus.c +++ b/sys/arch/powerpc/pci/mpcpcibus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpcpcibus.c,v 1.8 1998/08/25 08:20:23 pefo Exp $ */ +/* $OpenBSD: mpcpcibus.c,v 1.9 1999/01/11 05:11:53 millert Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -484,7 +484,7 @@ mpc_intr_establish(lcv, ih, level, func, arg, name) char *name; { if (ih == 0 || ih >= ICU_LEN || ih == 2) - panic("pci_intr_establish: bogus handle 0x%x\n", ih); + panic("pci_intr_establish: bogus handle 0x%x", ih); return isabr_intr_establish(NULL, ih, IST_LEVEL, level, func, arg, name); } diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c index 30a6b4ad9ac..e6c147b3c57 100644 --- a/sys/arch/powerpc/powerpc/machdep.c +++ b/sys/arch/powerpc/powerpc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.21 1999/01/07 23:16:06 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.22 1999/01/11 05:11:54 millert Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -884,7 +884,7 @@ ppc_intr_establish(lcv, ih, level, func, arg, name) void *arg; char *name; { - panic("ppc_intr_establish called before interrupt controller configured: driver %s\n", name); + panic("ppc_intr_establish called before interrupt controller configured: driver %s", name); } intr_establish_t *intr_establish_func = ppc_intr_establish;; diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c index cc1f532e2a6..7b518d5b506 100644 --- a/sys/arch/powerpc/powerpc/pmap.c +++ b/sys/arch/powerpc/powerpc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.7 1998/08/22 18:32:00 rahnds Exp $ */ +/* $OpenBSD: pmap.c,v 1.8 1999/01/11 05:11:54 millert Exp $ */ /* $NetBSD: pmap.c,v 1.1 1996/09/30 16:34:52 ws Exp $ */ /* @@ -929,7 +929,7 @@ pmap_remove_pv(pm, pteidx, va, pind, pte) } #ifdef DIAGNOSTIC else - panic("pmap_remove_pv: not on list\n"); + panic("pmap_remove_pv: not on list"); #endif } } diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c index d57746dbadc..64fb8b566e0 100644 --- a/sys/arch/sparc/dev/if_ie.c +++ b/sys/arch/sparc/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.7 1997/08/08 08:25:09 downsj Exp $ */ +/* $OpenBSD: if_ie.c,v 1.8 1999/01/11 05:11:55 millert Exp $ */ /* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */ /*- @@ -1529,7 +1529,7 @@ iereset(sc) #ifdef notdef if (!check_ie_present(sc, sc->sc_maddr, sc->sc_msize)) - panic("ie disappeared!\n"); + panic("ie disappeared!"); #endif sc->sc_arpcom.ac_if.if_flags |= IFF_UP; @@ -1715,7 +1715,7 @@ setup_bufs(sc) sc->nframes = n / r; if (sc->nframes <= 0) - panic("ie: bogus buffer calc\n"); + panic("ie: bogus buffer calc"); if (sc->nframes > MXFRAMES) sc->nframes = MXFRAMES; diff --git a/sys/arch/sparc/dev/isp_sbus.c b/sys/arch/sparc/dev/isp_sbus.c index 3fe4bfcf742..70c30a1958f 100644 --- a/sys/arch/sparc/dev/isp_sbus.c +++ b/sys/arch/sparc/dev/isp_sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_sbus.c,v 1.3 1998/11/11 00:50:31 jason Exp $ */ +/* $OpenBSD: isp_sbus.c,v 1.4 1999/01/11 05:11:56 millert Exp $ */ /* $NetBSD: isp_sbus.c,v 1.8 1997/08/27 11:24:19 bouyer Exp $ */ /* @@ -281,7 +281,7 @@ isp_sbus_dmasetup(isp, xs, rq, iptrp, optr) if (rq->req_handle > RQUEST_QUEUE_LEN(isp) || rq->req_handle < 1) { - panic("%s: bad handle (%d) in isp_sbus_dmasetup\n", + panic("%s: bad handle (%d) in isp_sbus_dmasetup", isp->isp_name, rq->req_handle); /* NOTREACHED */ } @@ -296,7 +296,7 @@ isp_sbus_dmasetup(isp, xs, rq, iptrp, optr) } if (sbc->sbus_kdma_allocs[rq->req_handle - 1] != (vm_offset_t) 0) { - panic("%s: kdma handle already allocated\n", isp->isp_name); + panic("%s: kdma handle already allocated", isp->isp_name); /* NOTREACHED */ } sbc->sbus_kdma_allocs[rq->req_handle - 1] = kdvma; @@ -325,12 +325,12 @@ isp_sbus_dmateardown(isp, xs, handle) } if (handle >= RQUEST_QUEUE_LEN(isp)) { - panic("%s: bad handle (%d) in isp_sbus_dmateardown\n", + panic("%s: bad handle (%d) in isp_sbus_dmateardown", isp->isp_name, handle); /* NOTREACHED */ } if (sbc->sbus_kdma_allocs[handle] == (vm_offset_t) 0) { - panic("%s: kdma handle not already allocated\n", isp->isp_name); + panic("%s: kdma handle not already allocated", isp->isp_name); /* NOTREACHED */ } kdvma = sbc->sbus_kdma_allocs[handle]; diff --git a/sys/arch/sparc/dev/si.c b/sys/arch/sparc/dev/si.c index 26238e8442d..c057556f08c 100644 --- a/sys/arch/sparc/dev/si.c +++ b/sys/arch/sparc/dev/si.c @@ -1,4 +1,4 @@ -/* $OpenBSD: si.c,v 1.11 1997/09/17 06:47:11 downsj Exp $ */ +/* $OpenBSD: si.c,v 1.12 1999/01/11 05:11:56 millert Exp $ */ /* $NetBSD: si.c,v 1.38 1997/08/27 11:24:20 bouyer Exp $ */ /*- @@ -431,7 +431,7 @@ si_attach(parent, self, args) i = SCI_OPENINGS * sizeof(struct si_dma_handle); sc->sc_dma = (struct si_dma_handle *)malloc(i, M_DEVBUF, M_NOWAIT); if (sc->sc_dma == NULL) - panic("si: dma handle malloc failed\n"); + panic("si: dma handle malloc failed"); for (i = 0; i < SCI_OPENINGS; i++) sc->sc_dma[i].dh_flags = 0; @@ -655,7 +655,7 @@ si_dma_alloc(ncr_sc) /* Make sure our caller checked sc_min_dma_len. */ if (xlen < MIN_DMA_LEN) - panic("si_dma_alloc: xlen=0x%x\n", xlen); + panic("si_dma_alloc: xlen=0x%x", xlen); /* Find free DMA handle. Guaranteed to find one since we have as many DMA handles as the driver has processes. */ diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c index 0f548225f38..9e17ac34c99 100644 --- a/sys/arch/sparc/dev/xy.c +++ b/sys/arch/sparc/dev/xy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xy.c,v 1.11 1998/10/03 21:18:58 millert Exp $ */ +/* $OpenBSD: xy.c,v 1.12 1999/01/11 05:11:57 millert Exp $ */ /* $NetBSD: xy.c,v 1.26 1997/07/19 21:43:56 pk Exp $ */ /* @@ -1390,7 +1390,7 @@ xyc_submit_iorq(xycsc, iorq, type) if (iopb == NULL) { /* nothing doing? */ if (type == XY_SUB_NORM || type == XY_SUB_NOQ) return(XY_ERR_AOK); - panic("xyc_submit_iorq: xyc_chain failed!\n"); + panic("xyc_submit_iorq: xyc_chain failed!"); } iopbaddr = (u_long) iopb - DVMA_BASE; diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c index b36233e2ad5..208c7bf6bf7 100644 --- a/sys/arch/sparc/sparc/autoconf.c +++ b/sys/arch/sparc/sparc/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.28 1998/04/17 18:18:02 deraadt Exp $ */ +/* $OpenBSD: autoconf.c,v 1.29 1999/01/11 05:11:58 millert Exp $ */ /* $NetBSD: autoconf.c,v 1.73 1997/07/29 09:41:53 fair Exp $ */ /* @@ -850,7 +850,7 @@ configure() node = findroot(); cp = getpropstring(node, "device_type"); if (strcmp(cp, "cpu") != 0) - panic("PROM root device type = %s (need CPU)\n", cp); + panic("PROM root device type = %s (need CPU)", cp); } #endif #if defined(SUN4M) diff --git a/sys/arch/sparc/sparc/iommu.c b/sys/arch/sparc/sparc/iommu.c index 91d125afae4..a817c531d58 100644 --- a/sys/arch/sparc/sparc/iommu.c +++ b/sys/arch/sparc/sparc/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.3 1997/08/08 08:27:20 downsj Exp $ */ +/* $OpenBSD: iommu.c,v 1.4 1999/01/11 05:11:58 millert Exp $ */ /* $NetBSD: iommu.c,v 1.13 1997/07/29 09:42:04 fair Exp $ */ /* @@ -225,7 +225,7 @@ iommu_attach(parent, self, aux) /* calculate log2(sc->sc_range/16MB) */ i = ffs(sc->sc_range/(1 << 24)) - 1; if ((1 << i) != (sc->sc_range/(1 << 24))) - panic("bad iommu range: %d\n",i); + panic("bad iommu range: %d",i); s = splhigh(); IOMMU_FLUSHALL(sc); diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index f3cd9f94241..8ccd5f9dea9 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.22 1998/05/29 16:21:35 jason Exp $ */ +/* $OpenBSD: pmap.c,v 1.23 1999/01/11 05:11:59 millert Exp $ */ /* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */ /* @@ -821,7 +821,7 @@ pmap_next_page(paddr) #ifdef DIAGNOSTIC /* Any available memory remaining? */ if (avail_next >= avail_end) { - panic("pmap_next_page: too much memory?!\n"); + panic("pmap_next_page: too much memory?!"); } #endif diff --git a/sys/arch/sparc/stand/common/promdev.c b/sys/arch/sparc/stand/common/promdev.c index 25057863046..b9a56663ba4 100644 --- a/sys/arch/sparc/stand/common/promdev.c +++ b/sys/arch/sparc/stand/common/promdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: promdev.c,v 1.1 1997/09/17 10:46:19 downsj Exp $ */ +/* $OpenBSD: promdev.c,v 1.2 1999/01/11 05:12:00 millert Exp $ */ /* $NetBSD: promdev.c,v 1.16 1995/11/14 15:04:01 pk Exp $ */ /* @@ -756,12 +756,12 @@ prom_mapin(physaddr, length, maptype) int i, pa, pte, va; if (length > (4*NBPG)) - panic("prom_mapin: length=%d\n", length); + panic("prom_mapin: length=%d", length); for (i = 0; i < prom_mapinfo_cnt; i++) if (prom_mapinfo[i].maptype == maptype) goto found; - panic("prom_mapin: invalid maptype %d\n", maptype); + panic("prom_mapin: invalid maptype %d", maptype); found: pte = prom_mapinfo[i].pgtype; diff --git a/sys/arch/sun3/dev/if_ie.c b/sys/arch/sun3/dev/if_ie.c index 0bbe7729481..34651d5d4e8 100644 --- a/sys/arch/sun3/dev/if_ie.c +++ b/sys/arch/sun3/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.9 1997/01/16 04:03:46 kstailey Exp $ */ +/* $OpenBSD: if_ie.c,v 1.10 1999/01/11 05:12:01 millert Exp $ */ /* $NetBSD: if_ie.c,v 1.15 1996/10/30 00:24:33 gwr Exp $ */ /*- @@ -1174,7 +1174,7 @@ iereset(sc) #ifdef notdef if (!check_ie_present(sc, sc->sc_maddr, sc->sc_msize)) - panic("ie disappeared!\n"); + panic("ie disappeared!"); #endif sc->sc_arpcom.ac_if.if_flags |= IFF_UP; @@ -1345,7 +1345,7 @@ setup_bufs(sc) sc->nframes = n / r; if (sc->nframes <= 0) - panic("ie: bogus buffer calc\n"); + panic("ie: bogus buffer calc"); if (sc->nframes > MXFRAMES) sc->nframes = MXFRAMES; diff --git a/sys/arch/sun3/dev/obio.c b/sys/arch/sun3/dev/obio.c index a6b6bc4120b..5160324edf3 100644 --- a/sys/arch/sun3/dev/obio.c +++ b/sys/arch/sun3/dev/obio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obio.c,v 1.6 1997/01/16 04:03:51 kstailey Exp $ */ +/* $OpenBSD: obio.c,v 1.7 1999/01/11 05:12:02 millert Exp $ */ /* $NetBSD: obio.c,v 1.23 1996/11/20 18:56:56 gwr Exp $ */ /*- @@ -144,7 +144,7 @@ obio_submatch(parent, vcf, aux) /* Now call the match function of the potential child. */ submatch = cf->cf_attach->ca_match; if (submatch == NULL) - panic("obio_submatch: no match function for: %s\n", + panic("obio_submatch: no match function for: %s", cf->cf_driver->cd_name); return ((*submatch)(parent, vcf, aux)); diff --git a/sys/arch/sun3/dev/si.c b/sys/arch/sun3/dev/si.c index 341ba7d5a0e..9b32b6ae59c 100644 --- a/sys/arch/sun3/dev/si.c +++ b/sys/arch/sun3/dev/si.c @@ -1,4 +1,4 @@ -/* $OpenBSD: si.c,v 1.8 1997/01/16 19:42:49 kstailey Exp $ */ +/* $OpenBSD: si.c,v 1.9 1999/01/11 05:12:02 millert Exp $ */ /* $NetBSD: si.c,v 1.31 1996/11/20 18:56:59 gwr Exp $ */ /*- @@ -205,7 +205,7 @@ si_attach(sc) sc->sc_dma = (struct si_dma_handle *) malloc(i, M_DEVBUF, M_WAITOK); if (sc->sc_dma == NULL) - panic("si: dvma_malloc failed\n"); + panic("si: dvma_malloc failed"); for (i = 0; i < SCI_OPENINGS; i++) sc->sc_dma[i].dh_flags = 0; @@ -356,7 +356,7 @@ si_dma_alloc(ncr_sc) /* Make sure our caller checked sc_min_dma_len. */ if (xlen < MIN_DMA_LEN) - panic("si_dma_alloc: xlen=0x%x\n", xlen); + panic("si_dma_alloc: xlen=0x%x", xlen); /* * Never attempt single transfers of more than 63k, because diff --git a/sys/arch/sun3/dev/xy.c b/sys/arch/sun3/dev/xy.c index 47cf8ea0b53..b1082d7e3fb 100644 --- a/sys/arch/sun3/dev/xy.c +++ b/sys/arch/sun3/dev/xy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xy.c,v 1.11 1998/10/03 21:18:59 millert Exp $ */ +/* $OpenBSD: xy.c,v 1.12 1999/01/11 05:12:02 millert Exp $ */ /* $NetBSD: xy.c,v 1.11 1996/10/13 03:47:40 christos Exp $ */ /* @@ -1371,7 +1371,7 @@ xyc_submit_iorq(xycsc, iorq, type) if (iopb == NULL) { /* nothing doing? */ if (type == XY_SUB_NORM || type == XY_SUB_NOQ) return(XY_ERR_AOK); - panic("xyc_submit_iorq: xyc_chain failed!\n"); + panic("xyc_submit_iorq: xyc_chain failed!"); } iopbaddr = dvma_kvtopa((long) iopb, BUS_VME16); diff --git a/sys/arch/sun3/dev/zs.c b/sys/arch/sun3/dev/zs.c index f8fa769c3cd..66f8a2fb978 100644 --- a/sys/arch/sun3/dev/zs.c +++ b/sys/arch/sun3/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.8 1997/06/23 13:40:47 kstailey Exp $ */ +/* $OpenBSD: zs.c,v 1.9 1999/01/11 05:12:03 millert Exp $ */ /* $NetBSD: zs.c,v 1.42 1996/11/20 18:57:03 gwr Exp $ */ /*- @@ -277,7 +277,7 @@ zsc_attach(parent, self, aux) /* Use the mapping setup by the Sun PROM. */ if (zsaddr[zsc_unit] == NULL) - panic("zs_attach: zs%d not mapped\n", zsc_unit); + panic("zs_attach: zs%d not mapped", zsc_unit); /* * Initialize software state for each channel. diff --git a/sys/arch/sun3/stand/libsa/netif_sun.c b/sys/arch/sun3/stand/libsa/netif_sun.c index a72d55e9428..bc7a5993cc7 100644 --- a/sys/arch/sun3/stand/libsa/netif_sun.c +++ b/sys/arch/sun3/stand/libsa/netif_sun.c @@ -164,7 +164,7 @@ netif_init(aux) } if ((dd->rbuf == NULL) || (dd->tbuf == NULL)) - panic("netif_init: malloc failed\n"); + panic("netif_init: malloc failed"); #ifdef NETIF_DEBUG if (debug) @@ -339,7 +339,7 @@ netif_put(desc, pkt, len) #ifdef PARANOID if (sif == NULL) - panic("netif_put: no saif ptr\n"); + panic("netif_put: no saif ptr"); #endif /* @@ -349,7 +349,7 @@ netif_put(desc, pkt, len) * very much data anyway, so the copy is fine. */ if (slen > dd->tbuf_len) - panic("netif_put: slen=%d\n", slen); + panic("netif_put: slen=%d", slen); bcopy(pkt, dd->tbuf, slen); if (slen < 60) { @@ -429,7 +429,7 @@ break2: /* If we went beyond our buffer, were dead! */ if (rlen > dd->rbuf_len) - panic("netif_get: rlen=%d\n", rlen); + panic("netif_get: rlen=%d", rlen); /* The caller's buffer may be smaller... */ if (rlen > maxlen) diff --git a/sys/arch/sun3/stand/libsa/promdev.c b/sys/arch/sun3/stand/libsa/promdev.c index 5ce7ee01fb9..f3982b8aaf3 100644 --- a/sys/arch/sun3/stand/libsa/promdev.c +++ b/sys/arch/sun3/stand/libsa/promdev.c @@ -200,12 +200,12 @@ prom_mapin(physaddr, length, maptype) int i, pa, pte, va; if (length > (4*NBPG)) - panic("prom_mapin: length=%d\n", length); + panic("prom_mapin: length=%d", length); for (i = 0; i < prom_mapinfo_cnt; i++) if (prom_mapinfo[i].maptype == maptype) goto found; - panic("prom_mapin: invalid maptype %d\n", maptype); + panic("prom_mapin: invalid maptype %d", maptype); found: pte = prom_mapinfo[i].pgtype; diff --git a/sys/arch/sun3/sun3/dvma.c b/sys/arch/sun3/sun3/dvma.c index 8f7f8301e83..eefbcf0ef9a 100644 --- a/sys/arch/sun3/sun3/dvma.c +++ b/sys/arch/sun3/sun3/dvma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dvma.c,v 1.7 1997/09/07 14:05:20 kstailey Exp $ */ +/* $OpenBSD: dvma.c,v 1.8 1999/01/11 05:12:05 millert Exp $ */ /* $NetBSD: dvma.c,v 1.5 1996/11/20 18:57:29 gwr Exp $ */ /*- @@ -152,7 +152,7 @@ dvma_kvtopa(kva, bustype) long mask; if (kva < DVMA_SPACE_START || kva >= DVMA_SPACE_END) - panic("dvma_kvtopa: bad dmva addr=0x%x\n", kva); + panic("dvma_kvtopa: bad dmva addr=0x%x", kva); switch (bustype) { case BUS_OBIO: @@ -163,7 +163,7 @@ dvma_kvtopa(kva, bustype) mask = DVMA_VME_SLAVE_MASK; break; default: - panic("dvma_kvtopa: bad bus type %d\n", bustype); + panic("dvma_kvtopa: bad bus type %d", bustype); } return(kva & mask); diff --git a/sys/arch/sun3/sun3/isr.c b/sys/arch/sun3/sun3/isr.c index 15f7256006a..d6d4419f710 100644 --- a/sys/arch/sun3/sun3/isr.c +++ b/sys/arch/sun3/sun3/isr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isr.c,v 1.7 1997/07/23 06:58:30 denny Exp $ */ +/* $OpenBSD: isr.c,v 1.8 1999/01/11 05:12:06 millert Exp $ */ /* $NetBSD: isr.c,v 1.25 1996/11/20 18:57:32 gwr Exp $ */ /*- @@ -292,7 +292,7 @@ set_vector_entry(entry, handler) void (*handler) __P((void)); { if ((entry <0) || (entry >= NVECTORS)) - panic("set_vector_entry: setting vector too high or low\n"); + panic("set_vector_entry: setting vector too high or low"); vector_table[entry] = handler; } @@ -301,6 +301,6 @@ get_vector_entry(entry) int entry; { if ((entry <0) || (entry >= NVECTORS)) - panic("get_vector_entry: setting vector too high or low\n"); + panic("get_vector_entry: setting vector too high or low"); return (unsigned int) vector_table[entry]; } diff --git a/sys/arch/sun3/sun3/pmap.c b/sys/arch/sun3/sun3/pmap.c index 678d433ee88..9bb14dbd8e1 100644 --- a/sys/arch/sun3/sun3/pmap.c +++ b/sys/arch/sun3/sun3/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.16 1998/03/04 10:58:18 niklas Exp $ */ +/* $OpenBSD: pmap.c,v 1.17 1999/01/11 05:12:06 millert Exp $ */ /* $NetBSD: pmap.c,v 1.64 1996/11/20 18:57:35 gwr Exp $ */ /*- @@ -1026,7 +1026,7 @@ pv_changepte(head, set_bits, clear_bits) #ifdef DIAGNOSTIC /* This function should only clear these bits: */ if (clear_bits & ~(PG_WRITE | PG_NC | PG_REF | PG_MOD)) - panic("pv_changepte: clear=0x%x\n"); + panic("pv_changepte: clear=0x%x"); #endif s = splpmap(); @@ -1086,7 +1086,7 @@ pv_changepte(head, set_bits, clear_bits) * XXX - Make sure pv_unlink() was done... */ if ((pte & PG_VALID) == 0) - panic("pv_changepte: not PG_VALID at va=0x%x\n", va); + panic("pv_changepte: not PG_VALID at va=0x%x", va); #endif /* Get these while it's easy. */ if (pte & PG_MODREF) { @@ -1190,7 +1190,7 @@ pv_syncflags(head) * XXX - Make sure pv_unlink() was done... */ if ((pte & PG_VALID) == 0) - panic("pv_syncflags: not PG_VALID at va=0x%x\n", va); + panic("pv_syncflags: not PG_VALID at va=0x%x", va); #endif /* OK, do what we came here for... */ if (pte & PG_MODREF) { @@ -2782,7 +2782,7 @@ pmap_extract(pmap, va) pa = PG_PA(pte); #ifdef DIAGNOSTIC if (pte & PG_TYPE) { - panic("pmap_extract: not main mem, va=0x%x\n", va); + panic("pmap_extract: not main mem, va=0x%x", va); } #endif return (pa); diff --git a/sys/arch/vax/vax/ka43.c b/sys/arch/vax/vax/ka43.c index 768fd02ea86..6dc632043c9 100644 --- a/sys/arch/vax/vax/ka43.c +++ b/sys/arch/vax/vax/ka43.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ka43.c,v 1.3 1997/09/10 12:04:46 maja Exp $ */ +/* $OpenBSD: ka43.c,v 1.4 1999/01/11 05:12:08 millert Exp $ */ /* $NetBSD: ka43.c,v 1.5 1997/04/18 18:53:38 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -172,7 +172,7 @@ ka43_mchk(addr) */ if (mfpr(PR_PCSTS) & KA43_PCS_TRAP2) { printf("TRAP2 (double error) in ka43_mchk.\n"); - panic("unrecoverable state in ka43_mchk.\n"); + panic("unrecoverable state in ka43_mchk."); return (-1); } if ((mcf->mc43_code & KA43_MC_RESTART) || diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c index 547368f199d..fd7e1c5131c 100644 --- a/sys/arch/vax/vax/trap.c +++ b/sys/arch/vax/vax/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.10 1998/05/11 16:19:13 niklas Exp $ */ +/* $OpenBSD: trap.c,v 1.11 1999/01/11 05:12:08 millert Exp $ */ /* $NetBSD: trap.c,v 1.28 1997/07/28 21:48:33 ragge Exp $ */ /* @@ -250,7 +250,7 @@ faulter: faultaddr = (u_int)pm->pm_pcb->P1BR + ((testaddr >> PGSHIFT) << 2); } else - panic("pageflt: PTE fault in SPT\n"); + panic("pageflt: PTE fault in SPT"); rv = vm_fault(pte_map, faultaddr & ~PAGE_MASK, VM_PROT_WRITE|VM_PROT_READ, FALSE); diff --git a/sys/arch/vax/vax/uvax.c b/sys/arch/vax/vax/uvax.c index 065ebc1589e..592daa5c584 100644 --- a/sys/arch/vax/vax/uvax.c +++ b/sys/arch/vax/vax/uvax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvax.c,v 1.3 1997/09/10 12:04:52 maja Exp $ */ +/* $OpenBSD: uvax.c,v 1.4 1999/01/11 05:12:08 millert Exp $ */ /* $NetBSD: uvax.c,v 1.4 1997/02/19 10:04:27 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -99,7 +99,7 @@ uvax_phys2virt(phys) #ifdef DIAGNOSTIC if (virt == 0) - panic("invalid argument %p to uvax_phys2virt()\n", phys); + panic("invalid argument %p to uvax_phys2virt()", phys); #endif return (virt); } diff --git a/sys/arch/vax/vsa/lk201.c b/sys/arch/vax/vsa/lk201.c index 0bf2e215bc4..10e232ef076 100644 --- a/sys/arch/vax/vsa/lk201.c +++ b/sys/arch/vax/vsa/lk201.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lk201.c,v 1.2 1997/05/29 00:05:34 niklas Exp $ */ +/* $OpenBSD: lk201.c,v 1.3 1999/01/11 05:12:09 millert Exp $ */ /* * The LK201 keycode mapping routine is here, along with initialization @@ -331,7 +331,7 @@ LKgetc(dev) #endif if (raw_kbd_getc == NULL) { - panic("Reading from LK-201 before keyboard driver diverted\n"); + panic("Reading from LK-201 before keyboard driver diverted"); return (-1); } diff --git a/sys/arch/vax/vsa/ncr.c b/sys/arch/vax/vsa/ncr.c index 59fcde3bc49..242e658561c 100644 --- a/sys/arch/vax/vsa/ncr.c +++ b/sys/arch/vax/vsa/ncr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr.c,v 1.3 1997/09/10 12:08:37 maja Exp $ */ +/* $OpenBSD: ncr.c,v 1.4 1999/01/11 05:12:09 millert Exp $ */ /* $NetBSD: ncr.c,v 1.8 1997/02/26 22:29:12 gwr Exp $ */ /* #define DEBUG /* */ @@ -439,7 +439,7 @@ si_attach(parent, self, aux) i = SCI_OPENINGS * sizeof(struct si_dma_handle); sc->sc_dma = (struct si_dma_handle *) malloc(i); if (sc->sc_dma == NULL) - panic("si: dvma_malloc failed\n"); + panic("si: dvma_malloc failed"); for (i = 0; i < SCI_OPENINGS; i++) sc->sc_dma[i].dh_flags = 0; @@ -646,7 +646,7 @@ si_dma_alloc(ncr_sc) /* Make sure our caller checked sc_min_dma_len. */ if (xlen < MIN_DMA_LEN) - panic("si_dma_alloc: xlen=0x%x\n", xlen); + panic("si_dma_alloc: xlen=0x%x", xlen); /* * Never attempt single transfers of more than 63k, because diff --git a/sys/arch/wgrisc/dev/if_sn.c b/sys/arch/wgrisc/dev/if_sn.c index b31ed2e0911..cfc42bc59ac 100644 --- a/sys/arch/wgrisc/dev/if_sn.c +++ b/sys/arch/wgrisc/dev/if_sn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sn.c,v 1.1 1997/02/06 16:02:42 pefo Exp $ */ +/* $OpenBSD: if_sn.c,v 1.2 1999/01/11 05:12:10 millert Exp $ */ /* * National Semiconductor SONIC Driver * Copyright (c) 1991 Algorithmics Ltd (http://www.algor.co.uk) @@ -847,7 +847,7 @@ camprogram(sc) continue; if (timeout == 0) { /* XXX */ - panic("sonic: CAM initialisation failed\n"); + panic("sonic: CAM initialisation failed"); } timeout = 10000; while ((csr->s_isr & ISR_LCD) == 0 && timeout--) diff --git a/sys/arch/wgrisc/riscbus/riscbus.c b/sys/arch/wgrisc/riscbus/riscbus.c index 942b5b77571..70dfdc5f365 100644 --- a/sys/arch/wgrisc/riscbus/riscbus.c +++ b/sys/arch/wgrisc/riscbus/riscbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: riscbus.c,v 1.3 1997/08/24 12:01:14 pefo Exp $ */ +/* $OpenBSD: riscbus.c,v 1.4 1999/01/11 05:12:10 millert Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -274,7 +274,7 @@ int riscbus_intrnull(val) void *val; { - panic("uncaught RISCBUS interrupt for slot %d\n", val); + panic("uncaught RISCBUS interrupt for slot %d", val); } /* |