diff options
Diffstat (limited to 'sys')
188 files changed, 490 insertions, 491 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); } /* diff --git a/sys/compat/common/compat_exec.c b/sys/compat/common/compat_exec.c index 2ce8bc7c576..d51393454f5 100644 --- a/sys/compat/common/compat_exec.c +++ b/sys/compat/common/compat_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compat_exec.c,v 1.3 1996/12/23 02:56:47 deraadt Exp $ */ +/* $OpenBSD: compat_exec.c,v 1.4 1999/01/11 05:12:11 millert Exp $ */ /* $NetBSD: compat_exec.c,v 1.1 1996/05/18 15:52:21 christos Exp $ */ /* @@ -71,7 +71,7 @@ exec_aout_prep_oldzmagic(p, epp) epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return ETXTBSY; } diff --git a/sys/compat/ibcs2/ibcs2_exec.c b/sys/compat/ibcs2/ibcs2_exec.c index 77105940c77..95f56cb1dda 100644 --- a/sys/compat/ibcs2/ibcs2_exec.c +++ b/sys/compat/ibcs2/ibcs2_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_exec.c,v 1.8 1998/07/28 00:13:24 millert Exp $ */ +/* $OpenBSD: ibcs2_exec.c,v 1.9 1999/01/11 05:12:12 millert Exp $ */ /* $NetBSD: ibcs2_exec.c,v 1.12 1996/10/12 02:13:52 thorpej Exp $ */ /* @@ -358,7 +358,7 @@ n */ epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return ETXTBSY; } diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c index 453325c84f7..5002aaa0acf 100644 --- a/sys/compat/linux/linux_exec.c +++ b/sys/compat/linux/linux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_exec.c,v 1.8 1998/07/28 00:13:23 millert Exp $ */ +/* $OpenBSD: linux_exec.c,v 1.9 1999/01/11 05:12:12 millert Exp $ */ /* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */ /* @@ -342,7 +342,7 @@ exec_linux_aout_prep_qmagic(p, epp) epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return (ETXTBSY); } diff --git a/sys/compat/m68k4k/m68k4k_exec.c b/sys/compat/m68k4k/m68k4k_exec.c index a975d013c2c..484d674b7fb 100644 --- a/sys/compat/m68k4k/m68k4k_exec.c +++ b/sys/compat/m68k4k/m68k4k_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m68k4k_exec.c,v 1.1 1997/01/13 11:07:52 niklas Exp $ */ +/* $OpenBSD: m68k4k_exec.c,v 1.2 1999/01/11 05:12:14 millert Exp $ */ /* $NetBSD: m68k4k_exec.c,v 1.1 1996/09/10 22:01:20 thorpej Exp $ */ /* @@ -150,7 +150,7 @@ exec_m68k4k_prep_zmagic(p, epp) epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return ETXTBSY; } diff --git a/sys/compat/sunos/sunos_exec.c b/sys/compat/sunos/sunos_exec.c index 24928655665..c94ec4b5f5e 100644 --- a/sys/compat/sunos/sunos_exec.c +++ b/sys/compat/sunos/sunos_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos_exec.c,v 1.7 1996/12/23 02:56:50 deraadt Exp $ */ +/* $OpenBSD: sunos_exec.c,v 1.8 1999/01/11 05:12:14 millert Exp $ */ /* $NetBSD: sunos_exec.c,v 1.11 1996/05/05 12:01:47 briggs Exp $ */ /* @@ -175,7 +175,7 @@ sunos_exec_aout_prep_zmagic(p, epp) epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return ETXTBSY; } diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c index e101ccaa8c2..33ef8990af7 100644 --- a/sys/dev/ic/aic7xxx.c +++ b/sys/dev/ic/aic7xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic7xxx.c,v 1.17 1997/07/03 17:46:53 deraadt Exp $ */ +/* $OpenBSD: aic7xxx.c,v 1.18 1999/01/11 05:12:15 millert Exp $ */ /* $NetBSD: aic7xxx.c,v 1.17 1996/10/21 22:34:04 thorpej Exp $ */ /* @@ -991,7 +991,7 @@ ahc_intr(arg) int num_errors = sizeof(hard_error)/sizeof(hard_error[0]); for(i = 0; error != 1 && i < num_errors; i++) error >>= 1; - panic("%s: brkadrint, %s at seqaddr = 0x%x\n", + panic("%s: brkadrint, %s at seqaddr = 0x%x", ahc_name(ahc), hard_error[i].errmesg, (AHC_INB(ahc, SEQADDR1) << 8) | AHC_INB(ahc, SEQADDR0)); diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index 510432257f5..fd785250950 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.41 1998/09/20 21:41:27 rahnds Exp $ */ +/* $OpenBSD: com.c,v 1.42 1999/01/11 05:12:16 millert Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /*- @@ -539,7 +539,7 @@ comattach(parent, self, aux) sc->sc_fifolen = 64; break; default: - panic("comattach: bad fifo type\n"); + panic("comattach: bad fifo type"); } /* clear and disable fifo */ diff --git a/sys/dev/ic/isp.c b/sys/dev/ic/isp.c index 7c72193260c..d051a824bd4 100644 --- a/sys/dev/ic/isp.c +++ b/sys/dev/ic/isp.c @@ -590,7 +590,7 @@ ispscsicmd(xs) break; } if (i == RQUEST_QUEUE_LEN) { - panic("%s: ran out of xflist pointers\n", isp->isp_name); + panic("%s: ran out of xflist pointers", isp->isp_name); /* NOTREACHED */ } else { isp->isp_xflist[i] = xs; diff --git a/sys/dev/ic/midway.c b/sys/dev/ic/midway.c index bf51b16560e..48a3121a9b7 100644 --- a/sys/dev/ic/midway.c +++ b/sys/dev/ic/midway.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midway.c,v 1.23 1999/01/11 02:30:59 aaron Exp $ */ +/* $OpenBSD: midway.c,v 1.24 1999/01/11 05:12:17 millert Exp $ */ /* (sync'd to midway.c 1.68) */ /* @@ -2671,7 +2671,7 @@ defer: /* defer processing */ llc = (aal5 && (sc->rxslot[slot].atm_flags & ATM_PH_LLCSNAP)) ? 1 : 0; rbd = EN_READ(sc, cur); if (MID_RBD_ID(rbd) != MID_RBD_STDID) - panic("en_service: id mismatch\n"); + panic("en_service: id mismatch"); if (rbd & MID_RBD_T) { mlen = 0; /* we've got trash */ diff --git a/sys/dev/pcmcia/com_pcmcia.c b/sys/dev/pcmcia/com_pcmcia.c index a19137ff365..19c888d2805 100644 --- a/sys/dev/pcmcia/com_pcmcia.c +++ b/sys/dev/pcmcia/com_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_pcmcia.c,v 1.9 1998/12/31 00:23:34 niklas Exp $ */ +/* $OpenBSD: com_pcmcia.c,v 1.10 1999/01/11 05:12:19 millert Exp $ */ /* $NetBSD: com_pcmcia.c,v 1.15 1998/08/22 17:47:58 msaitoh Exp $ */ /*- @@ -498,7 +498,7 @@ com_attach(sc) break; #endif default: - panic("comattach: bad fifo type\n"); + panic("comattach: bad fifo type"); } /* clear and disable fifo */ diff --git a/sys/dev/wscons/wscons_emul.c b/sys/dev/wscons/wscons_emul.c index 55d2cd92cb8..9f71dab650e 100644 --- a/sys/dev/wscons/wscons_emul.c +++ b/sys/dev/wscons/wscons_emul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wscons_emul.c,v 1.12 1997/11/06 12:26:59 niklas Exp $ */ +/* $OpenBSD: wscons_emul.c,v 1.13 1999/01/11 05:12:20 millert Exp $ */ /* $NetBSD: wscons_emul.c,v 1.7 1996/11/19 05:23:13 cgd Exp $ */ /* @@ -437,7 +437,7 @@ wscons_emul_input(we, cp, n) default: #ifdef DIAGNOSTIC - panic("wscons_emul: invalid state %d\n", we->ac_state); + panic("wscons_emul: invalid state %d", we->ac_state); #endif /* try to recover, if things get screwed up... */ newstate = ANSICONS_STATE_NORMAL; diff --git a/sys/kern/exec_aout.c b/sys/kern/exec_aout.c index 458f39e598a..61b37d86b00 100644 --- a/sys/kern/exec_aout.c +++ b/sys/kern/exec_aout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_aout.c,v 1.3 1996/12/23 02:42:41 deraadt Exp $ */ +/* $OpenBSD: exec_aout.c,v 1.4 1999/01/11 05:12:21 millert Exp $ */ /* $NetBSD: exec_aout.c,v 1.14 1996/02/04 02:15:01 christos Exp $ */ /* @@ -125,7 +125,7 @@ exec_aout_prep_zmagic(p, epp) epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return ETXTBSY; } diff --git a/sys/kern/exec_ecoff.c b/sys/kern/exec_ecoff.c index 741fecea34d..d745255f729 100644 --- a/sys/kern/exec_ecoff.c +++ b/sys/kern/exec_ecoff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_ecoff.c,v 1.4 1996/12/23 02:42:42 deraadt Exp $ */ +/* $OpenBSD: exec_ecoff.c,v 1.5 1999/01/11 05:12:21 millert Exp $ */ /* $NetBSD: exec_ecoff.c,v 1.8 1996/05/19 20:36:06 jonathan Exp $ */ /* @@ -199,7 +199,7 @@ exec_ecoff_prep_zmagic(p, epp) epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return ETXTBSY; } diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index 75c425402e3..6cd23955660 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.22 1998/07/28 00:13:02 millert Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.23 1999/01/11 05:12:22 millert Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -471,7 +471,7 @@ exec_elf_makecmds(p, epp) if (epp->ep_vp->v_writecount != 0) { #ifdef DIAGNOSTIC if (epp->ep_vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + panic("exec: a VTEXT vnode has writecount != 0"); #endif return (ETXTBSY); } diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c index 93583be73d5..7f7c90a72cc 100644 --- a/sys/kern/exec_script.c +++ b/sys/kern/exec_script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_script.c,v 1.7 1997/11/06 05:58:13 csapuntz Exp $ */ +/* $OpenBSD: exec_script.c,v 1.8 1999/01/11 05:12:22 millert Exp $ */ /* $NetBSD: exec_script.c,v 1.13 1996/02/04 02:15:06 christos Exp $ */ /* @@ -207,7 +207,7 @@ check_shell: (size_t *)0); #ifdef DIAGNOSTIC if (error != 0) - panic("exec_script: copyinstr couldn't fail\n"); + panic("exec_script: copyinstr couldn't fail"); #endif #ifdef FDSCRIPTS } else diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index c8cdb419973..2f157288837 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_lock.c,v 1.7 1998/12/28 19:13:04 art Exp $ */ +/* $OpenBSD: kern_lock.c,v 1.8 1999/01/11 05:12:22 millert Exp $ */ /* * Copyright (c) 1995 @@ -199,7 +199,7 @@ lockmgr(lkp, flags, interlkp, p) panic("lockmgr: using decommissioned lock"); if ((flags & LK_TYPE_MASK) != LK_RELEASE || lkp->lk_lockholder != pid) - panic("lockmgr: non-release on draining lock: %d\n", + panic("lockmgr: non-release on draining lock: %d", flags & LK_TYPE_MASK); lkp->lk_flags &= ~LK_DRAINING; if ((flags & LK_REENABLE) == 0) diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 8b3b6fa155b..ce8f043dcf3 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc.c,v 1.9 1998/02/20 13:43:23 niklas Exp $ */ +/* $OpenBSD: kern_malloc.c,v 1.10 1999/01/11 05:12:23 millert Exp $ */ /* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */ /* @@ -300,7 +300,7 @@ free(addr, type) else alloc = addrmask[kup->ku_indx]; if (((u_long)addr & alloc) != 0) - panic("free: unaligned addr %p, size %ld, type %s, mask %ld\n", + panic("free: unaligned addr %p, size %ld, type %s, mask %ld", addr, size, memname[type], alloc); #endif /* DIAGNOSTIC */ if (size > MAXALLOCSAVE) { diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index 20565ac06a0..c7b5c014a44 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_autoconf.c,v 1.21 1998/05/11 09:59:39 niklas Exp $ */ +/* $OpenBSD: subr_autoconf.c,v 1.22 1999/01/11 05:12:23 millert Exp $ */ /* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */ /* @@ -147,7 +147,7 @@ mapply(m, cf) pri = (*m->fn)(m->parent, match, m->aux); else { if (cf->cf_attach->ca_match == NULL) { - panic("mapply: no match function for '%s' device\n", + panic("mapply: no match function for '%s' device", cf->cf_driver->cd_name); } pri = (*cf->cf_attach->ca_match)(m->parent, match, m->aux); diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 4f1fab02321..c97f513d8ce 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.24 1999/01/10 01:45:31 niklas Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.25 1999/01/11 05:12:23 millert Exp $ */ /* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */ /*- @@ -137,7 +137,7 @@ __assert(t, f, l, e) int l; { - panic("kernel %sassertion \"%s\" failed: file \"%s\", line %d\n", + panic("kernel %sassertion \"%s\" failed: file \"%s\", line %d", t, e, f, l); } diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index 05e6d6e210b..bb6de8a9b56 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_cluster.c,v 1.15 1998/10/13 00:28:32 csapuntz Exp $ */ +/* $OpenBSD: vfs_cluster.c,v 1.16 1999/01/11 05:12:24 millert Exp $ */ /* $NetBSD: vfs_cluster.c,v 1.12 1996/04/22 01:39:05 christos Exp $ */ /*- @@ -292,7 +292,7 @@ cluster_rbuild(vp, filesize, bp, lbn, blkno, size, run, flags) #ifdef DIAGNOSTIC if (size != vp->v_mount->mnt_stat.f_iosize) - panic("cluster_rbuild: size %ld != filesize %ld\n", + panic("cluster_rbuild: size %ld != filesize %ld", size, vp->v_mount->mnt_stat.f_iosize); #endif if ((u_quad_t)size * (u_quad_t)(lbn + run + 1) > filesize) @@ -612,7 +612,7 @@ cluster_wbuild(vp, last_bp, size, start_lbn, len, lbn) #ifdef DIAGNOSTIC if (size != vp->v_mount->mnt_stat.f_iosize) - panic("cluster_wbuild: size %ld != filesize %ld\n", + panic("cluster_wbuild: size %ld != filesize %ld", size, vp->v_mount->mnt_stat.f_iosize); #endif redo: diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 765d12444c1..fce0bd94090 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_lookup.c,v 1.15 1998/08/07 01:56:11 csapuntz Exp $ */ +/* $OpenBSD: vfs_lookup.c,v 1.16 1999/01/11 05:12:24 millert Exp $ */ /* $NetBSD: vfs_lookup.c,v 1.17 1996/02/09 19:00:59 christos Exp $ */ /* @@ -694,7 +694,7 @@ relookup(dvp, vpp, cnp) * Check for symbolic link */ if (dp->v_type == VLNK && (cnp->cn_flags & FOLLOW)) - panic ("relookup: symlink found.\n"); + panic ("relookup: symlink found."); #endif /* diff --git a/sys/lib/libsa/arp.c b/sys/lib/libsa/arp.c index 46fd2d0003e..4fb93c8cbd6 100644 --- a/sys/lib/libsa/arp.c +++ b/sys/lib/libsa/arp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arp.c,v 1.6 1998/02/23 20:32:18 niklas Exp $ */ +/* $OpenBSD: arp.c,v 1.7 1999/01/11 05:12:25 millert Exp $ */ /* $NetBSD: arp.c,v 1.15 1996/10/13 02:28:58 christos Exp $ */ /* @@ -126,8 +126,7 @@ arpwhohas(d, addr) arpsend, &wbuf.data, sizeof(wbuf.data), arprecv, &rbuf.data, sizeof(rbuf.data)); if (i == -1) { - panic("arp: no response for %s\n", - inet_ntoa(addr)); + panic("arp: no response for %s", inet_ntoa(addr)); } /* Store ethernet address in cache */ diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c index d73c19e098d..8adafa0913f 100644 --- a/sys/lib/libsa/netif.c +++ b/sys/lib/libsa/netif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netif.c,v 1.5 1997/07/17 23:06:04 mickey Exp $ */ +/* $OpenBSD: netif.c,v 1.6 1999/01/11 05:12:26 millert Exp $ */ /* $NetBSD: netif.c,v 1.7 1996/10/13 02:29:03 christos Exp $ */ /* @@ -192,7 +192,7 @@ netif_attach(nif, desc, machdep_hint) desc->io_netif = nif; #ifdef PARANOID if (drv->netif_init == NULL) - panic("%s%d: no netif_init support\n", drv->netif_bname, + panic("%s%d: no netif_init support", drv->netif_bname, nif->nif_unit); #endif drv->netif_init(desc, machdep_hint); @@ -212,7 +212,7 @@ netif_detach(nif) #endif #ifdef PARANOID if (drv->netif_end == NULL) - panic("%s%d: no netif_end support\n", drv->netif_bname, + panic("%s%d: no netif_end support", drv->netif_bname, nif->nif_unit); #endif drv->netif_end(nif); @@ -237,7 +237,7 @@ netif_get(desc, pkt, len, timo) #endif #ifdef PARANOID if (drv->netif_get == NULL) - panic("%s%d: no netif_get support\n", drv->netif_bname, + panic("%s%d: no netif_get support", drv->netif_bname, nif->nif_unit); #endif rv = drv->netif_get(desc, pkt, len, timo); @@ -267,7 +267,7 @@ netif_put(desc, pkt, len) #endif #ifdef PARANOID if (drv->netif_put == NULL) - panic("%s%d: no netif_put support\n", drv->netif_bname, + panic("%s%d: no netif_put support", drv->netif_bname, nif->nif_unit); #endif rv = drv->netif_put(desc, pkt, len); diff --git a/sys/miscfs/nullfs/null_vnops.c b/sys/miscfs/nullfs/null_vnops.c index bb3650facfc..e2f23bd965b 100644 --- a/sys/miscfs/nullfs/null_vnops.c +++ b/sys/miscfs/nullfs/null_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: null_vnops.c,v 1.11 1998/08/06 21:28:45 csapuntz Exp $ */ +/* $OpenBSD: null_vnops.c,v 1.12 1999/01/11 05:12:27 millert Exp $ */ /* $NetBSD: null_vnops.c,v 1.7 1996/05/10 22:51:01 jtk Exp $ */ /* @@ -251,7 +251,7 @@ null_bypass(v) */ if (descp->vdesc_vp_offsets == NULL || descp->vdesc_vp_offsets[0] == VDESC_NO_OFFSET) - panic ("null_bypass: no vp's in map.\n"); + panic ("null_bypass: no vp's in map."); #endif /* diff --git a/sys/miscfs/umapfs/umap_vnops.c b/sys/miscfs/umapfs/umap_vnops.c index 38a8bfb4066..40b98f46375 100644 --- a/sys/miscfs/umapfs/umap_vnops.c +++ b/sys/miscfs/umapfs/umap_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umap_vnops.c,v 1.11 1998/08/06 23:06:20 csapuntz Exp $ */ +/* $OpenBSD: umap_vnops.c,v 1.12 1999/01/11 05:12:27 millert Exp $ */ /* $NetBSD: umap_vnops.c,v 1.5.4.1 1996/05/25 22:13:35 jtc Exp $ */ /* @@ -130,7 +130,7 @@ umap_bypass(v) */ if (descp->vdesc_vp_offsets == NULL || descp->vdesc_vp_offsets[0] == VDESC_NO_OFFSET) - panic ("umap_bypass: no vp's in map.\n"); + panic ("umap_bypass: no vp's in map."); #endif /* diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index d25fb2a4538..4792bf7383d 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vnops.c,v 1.19 1999/01/10 23:21:19 art Exp $ */ +/* $OpenBSD: msdosfs_vnops.c,v 1.20 1999/01/11 05:12:28 millert Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */ /*- @@ -1205,7 +1205,7 @@ abortit: cn = ip->de_StartCluster; if (cn == MSDOSFSROOT) { /* this should never happen */ - panic("msdosfs_rename: updating .. in root directory?\n"); + panic("msdosfs_rename: updating .. in root directory?"); } else bn = cntobn(pmp, cn); error = bread(pmp->pm_devvp, bn, pmp->pm_bpcluster, diff --git a/sys/netccitt/llc_output.c b/sys/netccitt/llc_output.c index d8cdccc8eba..81ca88a4cb2 100644 --- a/sys/netccitt/llc_output.c +++ b/sys/netccitt/llc_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: llc_output.c,v 1.2 1996/03/04 07:36:31 niklas Exp $ */ +/* $OpenBSD: llc_output.c,v 1.3 1999/01/11 05:12:29 millert Exp $ */ /* $NetBSD: llc_output.c,v 1.3 1996/02/13 22:04:47 christos Exp $ */ /* @@ -158,7 +158,7 @@ llc_resend(linkp, cmdrsp, pollfinal) if (linkp->llcl_slotsfree < linkp->llcl_window) /* assert lock between nr_received & V(S) */ if (linkp->llcl_nr_received != linkp->llcl_vs) - panic("llc: V(S) != N(R) received\n"); + panic("llc: V(S) != N(R) received"); for (slot = llc_seq2slot(linkp, linkp->llcl_vs); slot != linkp->llcl_freeslot; diff --git a/sys/netinet/ip_esp_new.c b/sys/netinet/ip_esp_new.c index 927091c7294..50c627c2c29 100644 --- a/sys/netinet/ip_esp_new.c +++ b/sys/netinet/ip_esp_new.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_new.c,v 1.28 1999/01/08 21:40:26 deraadt Exp $ */ +/* $OpenBSD: ip_esp_new.c,v 1.29 1999/01/11 05:12:30 millert Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -637,7 +637,7 @@ esp_new_input(struct mbuf *m, struct tdb *tdb) do { mi = (mo = mi)->m_next; if (mi == NULL) - panic("esp_new_input(): bad chain (i)\n"); + panic("esp_new_input(): bad chain (i)"); } while (mi->m_len == 0); if (mi->m_len < blks - rest) @@ -1012,7 +1012,7 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, do { mi = (mo = mi)->m_next; if (mi == NULL) - panic("esp_new_output(): bad chain (i)\n"); + panic("esp_new_output(): bad chain (i)"); } while (mi->m_len == 0); if (mi->m_len < blks - rest) diff --git a/sys/netinet/ip_esp_old.c b/sys/netinet/ip_esp_old.c index fe89cd7eaf4..f7a294b0db7 100644 --- a/sys/netinet/ip_esp_old.c +++ b/sys/netinet/ip_esp_old.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_old.c,v 1.24 1999/01/08 21:40:27 deraadt Exp $ */ +/* $OpenBSD: ip_esp_old.c,v 1.25 1999/01/11 05:12:30 millert Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -404,7 +404,7 @@ esp_old_input(struct mbuf *m, struct tdb *tdb) do { mi = (mo = mi)->m_next; if (mi == NULL) - panic("esp_old_input(): bad chain (i)\n"); + panic("esp_old_input(): bad chain (i)"); } while (mi->m_len == 0); if (mi->m_len < blks - rest) @@ -700,7 +700,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, do { mi = (mo = mi)->m_next; if (mi == NULL) - panic("esp_old_output(): bad chain (i)\n"); + panic("esp_old_output(): bad chain (i)"); } while (mi->m_len == 0); if (mi->m_len < blks - rest) diff --git a/sys/netinet6/ipv6_discovery.c b/sys/netinet6/ipv6_discovery.c index 6614a18e2aa..245e8da70db 100644 --- a/sys/netinet6/ipv6_discovery.c +++ b/sys/netinet6/ipv6_discovery.c @@ -837,9 +837,9 @@ ipv6_nsolicit(outifp,outgoing,newrt) DPRINTF(GROSSEVENT,("dq:\n")); DDO(GROSSEVENT,dump_discq(dq)); DDO(IDL_ERROR,if (dq == NULL) \ - panic("dq == NULL in nsolicit().\n"); \ + panic("dq == NULL in nsolicit()."); \ if (dq->dq_rt != newrt)\ - panic("dq <-> rt mismatch in nsolicit.\n");\ + panic("dq <-> rt mismatch in nsolicit.");\ {\ struct sockaddr_dl *sdl = (struct sockaddr_dl *)\ newrt->rt_gateway;\ diff --git a/sys/netinet6/ipv6_icmp.c b/sys/netinet6/ipv6_icmp.c index 843fc2ddcd7..b718c46e752 100644 --- a/sys/netinet6/ipv6_icmp.c +++ b/sys/netinet6/ipv6_icmp.c @@ -958,7 +958,7 @@ int ipv6_icmp_send(struct socket *so, int req, struct mbuf *m, M_PREPEND(m,sizeof(struct ipv6),M_WAIT); if (m == NULL) - panic("M_PREPEND died in ipv6_icmp_usrreq().\n"); + panic("M_PREPEND died in ipv6_icmp_usrreq()."); DPRINTF(EVENT,("Before m_pullup() for %d bytes.\n",\ sizeof(struct ipv6) + ICMPV6_MINLEN)); diff --git a/sys/netinet6/ipv6_rtrequest.c b/sys/netinet6/ipv6_rtrequest.c index 7e0bb20e27a..a797014b12a 100644 --- a/sys/netinet6/ipv6_rtrequest.c +++ b/sys/netinet6/ipv6_rtrequest.c @@ -687,7 +687,7 @@ ipv6_rtrequest(req, rt, sa) */ if (rt->rt_gateway == NULL) - panic("ipv6_rtrequest(): No rt_gateway at the RTM_RESOLVE code.\n"); + panic("ipv6_rtrequest(): No rt_gateway at the RTM_RESOLVE code."); /* * Order of bit checking is very important. I check TUNNEL first, diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c index a9cfa226b9f..bbe46003209 100644 --- a/sys/netipx/ipx_ip.c +++ b/sys/netipx/ipx_ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipx_ip.c,v 1.3 1996/10/26 09:34:51 mickey Exp $ */ +/* $OpenBSD: ipx_ip.c,v 1.4 1999/01/11 05:12:33 millert Exp $ */ /*- * @@ -310,7 +310,7 @@ void ipxipstart(ifp) struct ifnet *ifp; { - panic("ipxip_start called\n"); + panic("ipxip_start called"); } struct ifreq ifr_ipxip = {"ipx0"}; diff --git a/sys/netns/ns_ip.c b/sys/netns/ns_ip.c index aa1f7b25cb5..dfaaab47c81 100644 --- a/sys/netns/ns_ip.c +++ b/sys/netns/ns_ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ns_ip.c,v 1.7 1996/10/21 10:58:19 mickey Exp $ */ +/* $OpenBSD: ns_ip.c,v 1.8 1999/01/11 05:12:34 millert Exp $ */ /* $NetBSD: ns_ip.c,v 1.16 1996/05/09 22:29:40 scottr Exp $ */ /* @@ -322,7 +322,7 @@ void nsipstart(ifp) struct ifnet *ifp; { - panic("nsip_start called\n"); + panic("nsip_start called"); } struct ifreq ifr = {"nsip0"}; /* XXX */ diff --git a/sys/netns/spp_usrreq.c b/sys/netns/spp_usrreq.c index af4ea3d14e1..c5164d049ab 100644 --- a/sys/netns/spp_usrreq.c +++ b/sys/netns/spp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spp_usrreq.c,v 1.7 1998/03/10 08:29:14 deraadt Exp $ */ +/* $OpenBSD: spp_usrreq.c,v 1.8 1999/01/11 05:12:35 millert Exp $ */ /* $NetBSD: spp_usrreq.c,v 1.9 1996/02/13 22:14:13 christos Exp $ */ /* @@ -104,7 +104,7 @@ spp_input(m, va_alist) sppstat.spps_rcvtotal++; if (nsp == 0) { - panic("No nspcb in spp_input\n"); + panic("No nspcb in spp_input"); return; } diff --git a/sys/ufs/ext2fs/ext2fs_alloc.c b/sys/ufs/ext2fs/ext2fs_alloc.c index d22c9b46eaf..90897f7fd09 100644 --- a/sys/ufs/ext2fs/ext2fs_alloc.c +++ b/sys/ufs/ext2fs/ext2fs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_alloc.c,v 1.3 1997/06/12 21:09:31 downsj Exp $ */ +/* $OpenBSD: ext2fs_alloc.c,v 1.4 1999/01/11 05:12:35 millert Exp $ */ /* $NetBSD: ext2fs_alloc.c,v 1.1 1997/06/11 09:33:41 bouyer Exp $ */ /* @@ -99,7 +99,7 @@ ext2fs_alloc(ip, lbn, bpref, cred, bnp) fs = ip->i_e2fs; #ifdef DIAGNOSTIC if (cred == NOCRED) - panic("ext2fs_alloc: missing credential\n"); + panic("ext2fs_alloc: missing credential"); #endif /* DIAGNOSTIC */ if (fs->e2fs.e2fs_fbcount == 0) goto nospace; @@ -557,7 +557,7 @@ ext2fs_vfree(v) pip = VTOI(ap->a_pvp); fs = pip->i_e2fs; if ((u_int)ino >= fs->e2fs.e2fs_icount || (u_int)ino < EXT2_FIRSTINO) - panic("ifree: range: dev = 0x%x, ino = %d, fs = %s\n", + panic("ifree: range: dev = 0x%x, ino = %d, fs = %s", pip->i_dev, ino, fs->e2fs_fsmnt); cg = ino_to_cg(fs, ino); error = bread(pip->i_devvp, fsbtodb(fs, fs->e2fs_gd[cg].ext2bgd_i_bitmap), diff --git a/sys/ufs/ext2fs/ext2fs_balloc.c b/sys/ufs/ext2fs/ext2fs_balloc.c index 29ebe7bb059..f45e8a6781e 100644 --- a/sys/ufs/ext2fs/ext2fs_balloc.c +++ b/sys/ufs/ext2fs/ext2fs_balloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_balloc.c,v 1.3 1997/06/12 21:09:31 downsj Exp $ */ +/* $OpenBSD: ext2fs_balloc.c,v 1.4 1999/01/11 05:12:36 millert Exp $ */ /* $NetBSD: ext2fs_balloc.c,v 1.1 1997/06/11 09:33:44 bouyer Exp $ */ /* @@ -121,7 +121,7 @@ ext2fs_balloc(ip, bn, size, cred, bpp, flags) return(error); #ifdef DIAGNOSTIC if (num < 1) - panic ("ext2fs_balloc: ufs_getlbns returned indirect block\n"); + panic ("ext2fs_balloc: ufs_getlbns returned indirect block"); #endif /* * Fetch the first indirect block allocating if necessary. diff --git a/sys/ufs/ext2fs/ext2fs_lookup.c b/sys/ufs/ext2fs/ext2fs_lookup.c index 68f39342885..e05806462f4 100644 --- a/sys/ufs/ext2fs/ext2fs_lookup.c +++ b/sys/ufs/ext2fs/ext2fs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_lookup.c,v 1.5 1998/07/28 00:13:14 millert Exp $ */ +/* $OpenBSD: ext2fs_lookup.c,v 1.6 1999/01/11 05:12:37 millert Exp $ */ /* $NetBSD: ext2fs_lookup.c,v 1.1 1997/06/11 09:33:59 bouyer Exp $ */ /* @@ -104,7 +104,7 @@ ext2fs_dirconv2ffs( e2dir, ffsdir) * XXX Rigth now this can't happen, but if one day * MAXNAMLEN != E2FS_MAXNAMLEN we should handle this more gracefully ! */ - if (e2dir->e2d_namlen > MAXNAMLEN) panic("ext2fs: e2dir->e2d_namlen\n"); + if (e2dir->e2d_namlen > MAXNAMLEN) panic("ext2fs: e2dir->e2d_namlen"); #endif strncpy(ffsdir->d_name, e2dir->e2d_name, ffsdir->d_namlen); diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index 3ee467a76d2..419480815f6 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_alloc.c,v 1.13 1998/03/27 11:51:01 pefo Exp $ */ +/* $OpenBSD: ffs_alloc.c,v 1.14 1999/01/11 05:12:37 millert Exp $ */ /* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */ /* @@ -118,7 +118,7 @@ ffs_alloc(ip, lbn, bpref, size, cred, bnp) panic("ffs_alloc: bad size"); } if (cred == NOCRED) - panic("ffs_alloc: missing credential\n"); + panic("ffs_alloc: missing credential"); #endif /* DIAGNOSTIC */ if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) goto nospace; @@ -187,7 +187,7 @@ ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp) panic("ffs_realloccg: bad size"); } if (cred == NOCRED) - panic("ffs_realloccg: missing credential\n"); + panic("ffs_realloccg: missing credential"); #endif /* DIAGNOSTIC */ if (cred->cr_uid != 0 && freespace(fs, fs->fs_minfree) <= 0) goto nospace; @@ -1426,7 +1426,7 @@ ffs_freefile(ap) pip = VTOI(ap->a_pvp); fs = pip->i_fs; if ((u_int)ino >= fs->fs_ipg * fs->fs_ncg) - panic("ifree: range: dev = 0x%x, ino = %d, fs = %s\n", + panic("ifree: range: dev = 0x%x, ino = %d, fs = %s", pip->i_dev, ino, fs->fs_fsmnt); cg = ino_to_cg(fs, ino); error = bread(pip->i_devvp, fsbtodb(fs, cgtod(fs, cg)), diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c index 106433350eb..3a062bcda05 100644 --- a/sys/ufs/ffs/ffs_balloc.c +++ b/sys/ufs/ffs/ffs_balloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_balloc.c,v 1.6 1997/11/06 05:59:17 csapuntz Exp $ */ +/* $OpenBSD: ffs_balloc.c,v 1.7 1999/01/11 05:12:37 millert Exp $ */ /* $NetBSD: ffs_balloc.c,v 1.3 1996/02/09 22:22:21 christos Exp $ */ /* @@ -197,7 +197,7 @@ ffs_balloc(v) return(error); #ifdef DIAGNOSTIC if (num < 1) - panic ("ffs_balloc: ufs_bmaparray returned indirect block\n"); + panic ("ffs_balloc: ufs_bmaparray returned indirect block"); #endif /* * Fetch the first indirect block allocating if necessary. diff --git a/sys/ufs/lfs/lfs_alloc.c b/sys/ufs/lfs/lfs_alloc.c index 0551eaaf982..132de7e5c79 100644 --- a/sys/ufs/lfs/lfs_alloc.c +++ b/sys/ufs/lfs/lfs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lfs_alloc.c,v 1.6 1997/05/30 08:34:33 downsj Exp $ */ +/* $OpenBSD: lfs_alloc.c,v 1.7 1999/01/11 05:12:38 millert Exp $ */ /* $NetBSD: lfs_alloc.c,v 1.4 1996/03/25 12:53:37 pk Exp $ */ /* @@ -247,7 +247,7 @@ lfs_vfree(v) LFS_SEGENTRY(sup, fs, datosn(fs, old_iaddr), bp); #ifdef DIAGNOSTIC if (sup->su_nbytes < sizeof(struct dinode)) - panic("lfs_vfree: negative byte count (segment %d)\n", + panic("lfs_vfree: negative byte count (segment %d)", datosn(fs, old_iaddr)); #endif sup->su_nbytes -= sizeof(struct dinode); diff --git a/sys/ufs/lfs/lfs_inode.c b/sys/ufs/lfs/lfs_inode.c index c385e622eae..6dd0904c44f 100644 --- a/sys/ufs/lfs/lfs_inode.c +++ b/sys/ufs/lfs/lfs_inode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lfs_inode.c,v 1.6 1997/05/30 08:34:39 downsj Exp $ */ +/* $OpenBSD: lfs_inode.c,v 1.7 1999/01/11 05:12:38 millert Exp $ */ /* $NetBSD: lfs_inode.c,v 1.5 1996/05/11 18:27:35 mycroft Exp $ */ /* @@ -124,7 +124,7 @@ lfs_update(v) if (lastseg != -1) { \ LFS_SEGENTRY(sup, fs, lastseg, sup_bp); \ if (num > sup->su_nbytes) \ - panic("lfs_truncate: negative bytes in segment %d\n", \ + panic("lfs_truncate: negative bytes in segment %d", \ lastseg); \ sup->su_nbytes -= num; \ e1 = VOP_BWRITE(sup_bp); \ @@ -324,7 +324,7 @@ lfs_truncate(v) if (ip->i_ffs_blocks < fragstodb(fs, fragsreleased)) { printf("lfs_truncate: frag count < 0\n"); fragsreleased = dbtofrags(fs, ip->i_ffs_blocks); - panic("lfs_truncate: frag count < 0\n"); + panic("lfs_truncate: frag count < 0"); } #endif ip->i_ffs_blocks -= fragstodb(fs, fragsreleased); @@ -360,7 +360,7 @@ lfs_truncate(v) printf("lfs_inode: Warning! %s\n", "more frags released from inode than are in inode"); fragsreleased = dbtofrags(fs, ip->i_ffs_blocks); - panic("lfs_inode: Warning. More frags released\n"); + panic("lfs_inode: Warning. More frags released"); } #endif fs->lfs_bfree += fragstodb(fs, fragsreleased); diff --git a/sys/ufs/lfs/lfs_segment.c b/sys/ufs/lfs/lfs_segment.c index 40a534614c5..6efc84df7ee 100644 --- a/sys/ufs/lfs/lfs_segment.c +++ b/sys/ufs/lfs/lfs_segment.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lfs_segment.c,v 1.7 1997/11/06 05:59:22 csapuntz Exp $ */ +/* $OpenBSD: lfs_segment.c,v 1.8 1999/01/11 05:12:39 millert Exp $ */ /* $NetBSD: lfs_segment.c,v 1.4 1996/02/09 22:28:54 christos Exp $ */ /* @@ -593,7 +593,7 @@ lfs_updatemeta(sp) vp = sp->vp; nblocks = &sp->fip->fi_blocks[sp->fip->fi_nblocks] - sp->start_lbp; if (nblocks < 0) - panic("This is a bad thing\n"); + panic("This is a bad thing"); if (vp == NULL || nblocks == 0) return; @@ -1077,7 +1077,7 @@ lfs_callback(bp) fs = (struct lfs *)bp->b_saveaddr; #ifdef DIAGNOSTIC if (fs->lfs_iocount == 0) - panic("lfs_callback: zero iocount\n"); + panic("lfs_callback: zero iocount"); #endif if (--fs->lfs_iocount == 0) wakeup(&fs->lfs_iocount); diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c index c8e1da4a5ef..f8016625009 100644 --- a/sys/ufs/lfs/lfs_vfsops.c +++ b/sys/ufs/lfs/lfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lfs_vfsops.c,v 1.9 1997/11/06 05:59:22 csapuntz Exp $ */ +/* $OpenBSD: lfs_vfsops.c,v 1.10 1999/01/11 05:12:39 millert Exp $ */ /* $NetBSD: lfs_vfsops.c,v 1.11 1996/03/25 12:53:35 pk Exp $ */ /* @@ -380,7 +380,7 @@ lfs_unmount(mp, mntflags, p) if ((error = VFS_SYNC(mp, 1, p->p_ucred, p)) != 0) return (error); if (fs->lfs_ivnode->v_dirtyblkhd.lh_first) - panic("lfs_unmount: still dirty blocks on ifile vnode\n"); + panic("lfs_unmount: still dirty blocks on ifile vnode"); vrele(fs->lfs_ivnode); vgone(fs->lfs_ivnode); diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c index 47772fb45cb..1e8b6a21da9 100644 --- a/sys/ufs/mfs/mfs_vnops.c +++ b/sys/ufs/mfs/mfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vnops.c,v 1.8 1999/01/10 21:12:08 art Exp $ */ +/* $OpenBSD: mfs_vnops.c,v 1.9 1999/01/11 05:12:39 millert Exp $ */ /* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */ /* @@ -361,7 +361,7 @@ mfs_badop(v) void *v; { - panic("mfs_badop called\n"); + panic("mfs_badop called"); /* NOTREACHED */ } diff --git a/sys/xfs/xfs_vfsops.c b/sys/xfs/xfs_vfsops.c index 22874d6430e..e663d012047 100644 --- a/sys/xfs/xfs_vfsops.c +++ b/sys/xfs/xfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xfs_vfsops.c,v 1.3 1998/09/06 01:48:58 art Exp $ */ +/* $OpenBSD: xfs_vfsops.c,v 1.4 1999/01/11 05:12:40 millert Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). @@ -418,7 +418,7 @@ make_dead_vnode(struct mount *mp) XFSDEB(XDEBNODE, ("make_dead_vnode mp = 0x%x\n", (u_int) mp)); if ((error = getnewvnode(VT_NON, mp, dead_vnodeop_p, &dead))) - panic("make_dead_vnode: getnewvnode failed: error = %d\n", + panic("make_dead_vnode: getnewvnode failed: error = %d", error); return dead; |