summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-08-07 03:50:03 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-08-07 03:50:03 +0000
commiteb95cc9da073c2c7f556ff2c8c2a63c319881bfb (patch)
treed3984d88de35cd21a0754c75a71b124b3e0c79f2 /sys/arch
parent327b342b96e585a8d91a4811578b95328b8aead2 (diff)
No "\n" needed at the end of panic() strings.
Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/pci/pci_550.c4
-rw-r--r--sys/arch/armish/dev/pciide_machdep.c6
-rw-r--r--sys/arch/beagle/dev/gptimer.c4
-rw-r--r--sys/arch/beagle/dev/intc.c4
-rw-r--r--sys/arch/beagle/dev/omdisplay.c4
-rw-r--r--sys/arch/beagle/dev/omgpio.c8
-rw-r--r--sys/arch/beagle/dev/prcm.c4
-rw-r--r--sys/arch/hp300/stand/common/if_le.c4
-rw-r--r--sys/arch/hppa/dev/apic.c4
-rw-r--r--sys/arch/hppa/dev/astro.c4
-rw-r--r--sys/arch/hppa/hppa/fpu.c6
-rw-r--r--sys/arch/hppa64/dev/astro.c4
-rw-r--r--sys/arch/macppc/dev/openpic.c4
-rw-r--r--sys/arch/macppc/macppc/machdep.c4
-rw-r--r--sys/arch/mips64/mips64/cpu.c4
-rw-r--r--sys/arch/mips64/mips64/ipifuncs.c4
-rw-r--r--sys/arch/powerpc/powerpc/pmap.c6
-rw-r--r--sys/arch/sgi/sgi/ip30_machdep.c4
-rw-r--r--sys/arch/sh/dev/pciide_machdep.c6
-rw-r--r--sys/arch/sparc64/dev/raptor.c4
-rw-r--r--sys/arch/sparc64/dev/viommu.c4
-rw-r--r--sys/arch/sparc64/dev/vrng.c6
22 files changed, 51 insertions, 51 deletions
diff --git a/sys/arch/alpha/pci/pci_550.c b/sys/arch/alpha/pci/pci_550.c
index b34c1e752f7..e1d71f92bf8 100644
--- a/sys/arch/alpha/pci/pci_550.c
+++ b/sys/arch/alpha/pci/pci_550.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_550.c,v 1.21 2009/09/30 20:16:30 miod Exp $ */
+/* $OpenBSD: pci_550.c,v 1.22 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: pci_550.c,v 1.18 2000/06/29 08:58:48 mrg Exp $ */
/*-
@@ -398,7 +398,7 @@ dec_550_iointr(arg, vec)
irq = SCB_VECTOIDX(vec - 0x900);
if (irq >= DEC_550_MAX_IRQ)
- panic("550_iointr: vec 0x%lx out of range\n", vec);
+ panic("550_iointr: vec 0x%lx out of range", vec);
if (!alpha_shared_intr_dispatch(dec_550_pci_intr, irq)) {
alpha_shared_intr_stray(dec_550_pci_intr, irq,
diff --git a/sys/arch/armish/dev/pciide_machdep.c b/sys/arch/armish/dev/pciide_machdep.c
index 8b4b1228a1c..51975b17a41 100644
--- a/sys/arch/armish/dev/pciide_machdep.c
+++ b/sys/arch/armish/dev/pciide_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide_machdep.c,v 1.1 2006/05/29 17:13:19 drahn Exp $ */
+/* $OpenBSD: pciide_machdep.c,v 1.2 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: pciide_machdep.c,v 1.2 1999/02/19 18:01:27 mycroft Exp $ */
/*
@@ -54,12 +54,12 @@ void *
pciide_machdep_compat_intr_establish(struct device *dev,
struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
{
- panic("pciide_machdep_compat_intr_establish called\n");
+ panic("pciide_machdep_compat_intr_establish called");
return (NULL);
}
void
pciide_machdep_compat_intr_disestablish(pci_chipset_tag_t pc, void *cookie)
{
- panic("pciide_machdep_compat_intr_disestablish called\n");
+ panic("pciide_machdep_compat_intr_disestablish called");
}
diff --git a/sys/arch/beagle/dev/gptimer.c b/sys/arch/beagle/dev/gptimer.c
index 3258819dd90..a3afbb62209 100644
--- a/sys/arch/beagle/dev/gptimer.c
+++ b/sys/arch/beagle/dev/gptimer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gptimer.c,v 1.3 2010/02/22 23:16:47 drahn Exp $ */
+/* $OpenBSD: gptimer.c,v 1.4 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@ -177,7 +177,7 @@ gptimer_attach(struct device *parent, struct device *self, void *args)
tc_init(&gptimer_timecounter);
}
else
- panic("attaching too many gptimers at %x\n", aa->aa_addr);
+ panic("attaching too many gptimers at %x", aa->aa_addr);
}
/*
diff --git a/sys/arch/beagle/dev/intc.c b/sys/arch/beagle/dev/intc.c
index 27df50c37e1..af5f54d7d8d 100644
--- a/sys/arch/beagle/dev/intc.c
+++ b/sys/arch/beagle/dev/intc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intc.c,v 1.2 2010/06/01 03:11:43 drahn Exp $ */
+/* $OpenBSD: intc.c,v 1.3 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@ -424,7 +424,7 @@ intc_intr_establish(int irqno, int level, int (*func)(void *),
struct intrhand *ih;
if (irqno < 0 || irqno > NIRQ)
- panic("intc_intr_establish: bogus irqnumber %d: %s\n",
+ panic("intc_intr_establish: bogus irqnumber %d: %s",
irqno, name);
psw = disable_interrupts(I32_bit);
diff --git a/sys/arch/beagle/dev/omdisplay.c b/sys/arch/beagle/dev/omdisplay.c
index 062867ce71c..30c509dd7d1 100644
--- a/sys/arch/beagle/dev/omdisplay.c
+++ b/sys/arch/beagle/dev/omdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: omdisplay.c,v 1.1 2009/05/08 03:13:26 drahn Exp $ */
+/* $OpenBSD: omdisplay.c,v 1.2 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007 Dale Rahn <drahn@openbsd.org>
*
@@ -1010,7 +1010,7 @@ omdisplay_initialize(struct omdisplay_softc *sc,
mode = DISPC_GFX_ATTRIBUTES_GFXFMT_24;
break;
default:
- panic("invalid depth %d\n", geom->depth);
+ panic("invalid depth %d", geom->depth);
}
bus_space_write_4(sc->sc_iot, sc->sc_dcioh, DISPC_GFX_ATTRIBUTES,
DISPC_GFX_ATTRIBUTES_GFXENABLE | mode |
diff --git a/sys/arch/beagle/dev/omgpio.c b/sys/arch/beagle/dev/omgpio.c
index ec148fadb3c..40e6e25353c 100644
--- a/sys/arch/beagle/dev/omgpio.c
+++ b/sys/arch/beagle/dev/omgpio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: omgpio.c,v 1.2 2010/05/09 15:46:17 jasper Exp $ */
+/* $OpenBSD: omgpio.c,v 1.3 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@ -306,13 +306,13 @@ omgpio_intr_establish(unsigned int gpio, int level, int spl,
*/
if (GPIO_PIN_TO_INST(gpio) > NOMGPIO)
- panic("omgpio_intr_establish: bogus irqnumber %d: %s\n",
+ panic("omgpio_intr_establish: bogus irqnumber %d: %s",
gpio, name);
sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)];
if (sc->sc_handlers[GPIO_PIN_TO_OFFSET(gpio)] != NULL)
- panic("omgpio_intr_establish: gpio pin busy %d old %s new %s\n",
+ panic("omgpio_intr_establish: gpio pin busy %d old %s new %s",
gpio, sc->sc_handlers[GPIO_PIN_TO_OFFSET(gpio)]->ih_name,
name);
@@ -388,7 +388,7 @@ omgpio_irq(void *v)
ih->ih_count.ec_count++;
omgpio_clear_intr(ih->ih_gpio);
} else {
- panic("omgpio: irq fired no handler, gpio %x %x %x\n",
+ panic("omgpio: irq fired no handler, gpio %x %x %x",
sc->sc_dev.dv_unit * 32 + bit, pending,
bus_space_read_4(sc->sc_iot, sc->sc_ioh, GPIO_IRQENABLE1)
diff --git a/sys/arch/beagle/dev/prcm.c b/sys/arch/beagle/dev/prcm.c
index cf3a9bf705f..04fd63c7cf9 100644
--- a/sys/arch/beagle/dev/prcm.c
+++ b/sys/arch/beagle/dev/prcm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: prcm.c,v 1.3 2010/02/12 05:31:11 drahn Exp $ */
+/* $OpenBSD: prcm.c,v 1.4 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@ -258,7 +258,7 @@ prcm_setclock(int clock, int speed)
bus_space_write_4(prcm_iot, prcm_ioh, CM_CLKSEL_PER, reg);
} else
- panic("prcm_setclock invalid clock %d\n", clock);
+ panic("prcm_setclock invalid clock %d", clock);
#endif
}
diff --git a/sys/arch/hp300/stand/common/if_le.c b/sys/arch/hp300/stand/common/if_le.c
index c2c54b669fa..92c6499748f 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.5 2006/08/17 06:31:10 miod Exp $ */;
+/* $OpenBSD: if_le.c,v 1.6 2010/08/07 03:50:01 krw Exp $ */;
/* $NetBSD: if_le.c,v 1.9 1997/01/30 10:32:54 thorpej Exp $ */
/*
@@ -249,7 +249,7 @@ le_error(int unit, char *str, u_short stat)
if (stat & LE_MISS)
le_stats[unit].missed++;
if (stat & LE_MERR) {
- panic("le%d: memory error in '%s'\n", unit, str);
+ panic("le%d: memory error in '%s'", unit, str);
}
}
diff --git a/sys/arch/hppa/dev/apic.c b/sys/arch/hppa/dev/apic.c
index 3cffc4bf40e..e419cf0df0a 100644
--- a/sys/arch/hppa/dev/apic.c
+++ b/sys/arch/hppa/dev/apic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apic.c,v 1.10 2010/05/24 15:04:53 deraadt Exp $ */
+/* $OpenBSD: apic.c,v 1.11 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -110,7 +110,7 @@ apic_attach(struct elroy_softc *sc)
sc->sc_irq = malloc(sc->sc_nints * sizeof(int), M_DEVBUF,
M_NOWAIT | M_ZERO);
if (sc->sc_irq == NULL)
- panic("apic_attach: cannot allocate irq table\n");
+ panic("apic_attach: cannot allocate irq table");
apic_get_int_tbl(sc);
diff --git a/sys/arch/hppa/dev/astro.c b/sys/arch/hppa/dev/astro.c
index 0e326375297..89fd4c56eae 100644
--- a/sys/arch/hppa/dev/astro.c
+++ b/sys/arch/hppa/dev/astro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: astro.c,v 1.11 2010/05/24 15:04:53 deraadt Exp $ */
+/* $OpenBSD: astro.c,v 1.12 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -669,7 +669,7 @@ iommu_iomap_translate(struct iommu_map_state *ims, paddr_t pa)
e = SPLAY_FIND(iommu_page_tree, &ipm->ipm_tree, &pe);
if (e == NULL) {
- panic("couldn't find pa %lx\n", pa);
+ panic("couldn't find pa %lx", pa);
return 0;
}
diff --git a/sys/arch/hppa/hppa/fpu.c b/sys/arch/hppa/hppa/fpu.c
index 2e76b72b3cd..6fdd5b6f9b4 100644
--- a/sys/arch/hppa/hppa/fpu.c
+++ b/sys/arch/hppa/hppa/fpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu.c,v 1.4 2010/07/02 05:04:33 jsing Exp $ */
+/* $OpenBSD: fpu.c,v 1.5 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2010 Joel Sing <jsing@openbsd.org>
@@ -62,7 +62,7 @@ fpu_proc(struct proc *p, int save)
if (fpuci != ci) {
if (hppa_ipi_send(fpuci, HPPA_IPI_FPU_SAVE))
- panic("FPU shootdown failed!\n");
+ panic("FPU shootdown failed!");
/*
* The sync is essential here since the volatile on hfp_cpu
@@ -109,7 +109,7 @@ fpu_cpu_save(int save)
#ifdef DIAGNOSTIC
if (fpuci != ci)
- panic("FPU context is not on this CPU (%p != %p)\n",
+ panic("FPU context is not on this CPU (%p != %p)",
ci, hfp->hfp_cpu);
#endif
diff --git a/sys/arch/hppa64/dev/astro.c b/sys/arch/hppa64/dev/astro.c
index 63aad38fb97..dc7e41cd8d4 100644
--- a/sys/arch/hppa64/dev/astro.c
+++ b/sys/arch/hppa64/dev/astro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: astro.c,v 1.3 2010/05/24 15:06:03 deraadt Exp $ */
+/* $OpenBSD: astro.c,v 1.4 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -669,7 +669,7 @@ iommu_iomap_translate(struct iommu_map_state *ims, paddr_t pa)
e = SPLAY_FIND(iommu_page_tree, &ipm->ipm_tree, &pe);
if (e == NULL) {
- panic("couldn't find pa %lx\n", pa);
+ panic("couldn't find pa %lx", pa);
return 0;
}
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c
index acc3e126a97..baae59719db 100644
--- a/sys/arch/macppc/dev/openpic.c
+++ b/sys/arch/macppc/dev/openpic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openpic.c,v 1.60 2010/04/09 19:24:17 jasper Exp $ */
+/* $OpenBSD: openpic.c,v 1.61 2010/08/07 03:50:01 krw Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -666,7 +666,7 @@ openpic_send_ipi(struct cpu_info *ci, int id)
id = 1;
break;
default:
- panic("invalid ipi send to cpu %d %d\n", ci->ci_cpuid, id);
+ panic("invalid ipi send to cpu %d %d", ci->ci_cpuid, id);
}
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c
index 185d983d2fd..97baa9e7c4d 100644
--- a/sys/arch/macppc/macppc/machdep.c
+++ b/sys/arch/macppc/macppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.120 2010/07/31 21:15:05 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.121 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -1045,7 +1045,7 @@ intr_send_ipi_t *intr_send_ipi_func = ppc_no_send_ipi;
void
ppc_no_send_ipi(struct cpu_info *ci, int id)
{
- panic("ppc_send_ipi called: no ipi function\n");
+ panic("ppc_send_ipi called: no ipi function");
}
void
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c
index 5d1c8862b4f..80703444697 100644
--- a/sys/arch/mips64/mips64/cpu.c
+++ b/sys/arch/mips64/mips64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.30 2010/06/26 23:24:43 guenther Exp $ */
+/* $OpenBSD: cpu.c,v 1.31 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se)
@@ -89,7 +89,7 @@ cpuattach(struct device *parent, struct device *dev, void *aux)
cpu_info_secondaries = (struct cpu_info *)alloc_contiguous_pages(
sizeof(struct cpu_info) * ncpusfound - 1);
if (cpu_info_secondaries == NULL)
- panic("unable to allocate cpu_info\n");
+ panic("unable to allocate cpu_info");
#endif
}
#ifdef MULTIPROCESSOR
diff --git a/sys/arch/mips64/mips64/ipifuncs.c b/sys/arch/mips64/mips64/ipifuncs.c
index 850768476d0..c8286dd182e 100644
--- a/sys/arch/mips64/mips64/ipifuncs.c
+++ b/sys/arch/mips64/mips64/ipifuncs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipifuncs.c,v 1.4 2010/04/28 16:20:28 syuu Exp $ */
+/* $OpenBSD: ipifuncs.c,v 1.5 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: ipifuncs.c,v 1.40 2008/04/28 20:23:10 martin Exp $ */
/*-
@@ -82,7 +82,7 @@ mips64_ipi_init(void)
error = hw_ipi_intr_establish(mips64_ipi_intr, cpuid);
if (error)
- panic("hw_ipi_intr_establish failed:%d\n", error);
+ panic("hw_ipi_intr_establish failed:%d", error);
}
/*
diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c
index a57ab10232b..f3559ff33f1 100644
--- a/sys/arch/powerpc/powerpc/pmap.c
+++ b/sys/arch/powerpc/powerpc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.116 2010/07/16 06:22:31 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.117 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2001, 2002, 2007 Dale Rahn.
@@ -243,7 +243,7 @@ pmap_hash_lock(int entry)
if (pmap_hash_lock_word & (1 << entry)) {
attempt++;
if(attempt >0x20000000)
- panic("unable to obtain lock on entry %d\n",
+ panic("unable to obtain lock on entry %d",
entry);
continue;
}
@@ -793,7 +793,7 @@ _pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot, int flags, int cache)
/* Do not have pted for this, get one and put it in VP */
if (pted == NULL) {
- panic("pted not preallocated in pmap_kernel() va %lx pa %lx\n",
+ panic("pted not preallocated in pmap_kernel() va %lx pa %lx",
va, pa);
}
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c
index 0e31926f453..c5a2a27f563 100644
--- a/sys/arch/sgi/sgi/ip30_machdep.c
+++ b/sys/arch/sgi/sgi/ip30_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip30_machdep.c,v 1.42 2010/04/28 16:20:28 syuu Exp $ */
+/* $OpenBSD: ip30_machdep.c,v 1.43 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -533,7 +533,7 @@ hw_cpu_boot_secondary(struct cpu_info *ci)
#endif
kstack = alloc_contiguous_pages(USPACE);
if (kstack == NULL)
- panic("unable to allocate idle stack\n");
+ panic("unable to allocate idle stack");
ci->ci_curprocpaddr = (void *)kstack;
*(volatile uint64_t *)(mpconf + MPCONF_STACKADDR(cpuid)) =
diff --git a/sys/arch/sh/dev/pciide_machdep.c b/sys/arch/sh/dev/pciide_machdep.c
index d5edaacedd2..6e129ad7d34 100644
--- a/sys/arch/sh/dev/pciide_machdep.c
+++ b/sys/arch/sh/dev/pciide_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide_machdep.c,v 1.1 2006/10/16 21:46:02 drahn Exp $ */
+/* $OpenBSD: pciide_machdep.c,v 1.2 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 1998 Christopher G. Demetriou. All rights reserved.
@@ -53,12 +53,12 @@ void *
pciide_machdep_compat_intr_establish(struct device *dev,
struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
{
- panic("pciide_machdep_compat_intr_establish called\n");
+ panic("pciide_machdep_compat_intr_establish called");
return (NULL);
}
void
pciide_machdep_compat_intr_disestablish(pci_chipset_tag_t pc, void *cookie)
{
- panic("pciide_machdep_compat_intr_disestablish called\n");
+ panic("pciide_machdep_compat_intr_disestablish called");
}
diff --git a/sys/arch/sparc64/dev/raptor.c b/sys/arch/sparc64/dev/raptor.c
index 834c3aa1428..0d096c058b2 100644
--- a/sys/arch/sparc64/dev/raptor.c
+++ b/sys/arch/sparc64/dev/raptor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raptor.c,v 1.6 2009/09/05 14:09:35 miod Exp $ */
+/* $OpenBSD: raptor.c,v 1.7 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis.
@@ -525,7 +525,7 @@ raptor_init(struct raptor_softc *sc)
I128_BUF_CTRL, I128_BC_PSIZ_32B);
break;
default:
- panic("unsupported depth\n");
+ panic("unsupported depth");
break;
}
diff --git a/sys/arch/sparc64/dev/viommu.c b/sys/arch/sparc64/dev/viommu.c
index f3e2b6ebc5b..af8797f4cb5 100644
--- a/sys/arch/sparc64/dev/viommu.c
+++ b/sys/arch/sparc64/dev/viommu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: viommu.c,v 1.9 2010/04/20 23:26:59 deraadt Exp $ */
+/* $OpenBSD: viommu.c,v 1.10 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: iommu.c,v 1.47 2002/02/08 20:03:45 eeh Exp $ */
/*
@@ -160,7 +160,7 @@ viommu_enter(struct iommu_state *is, struct strbuf_ctl *sb, bus_addr_t va,
page_list[0] = trunc_page(pa);
if (!pmap_extract(pmap_kernel(), (vaddr_t)page_list, &addr))
- panic("viommu_enter: pmap_extract failed\n");
+ panic("viommu_enter: pmap_extract failed");
err = hv_pci_iommu_map(is->is_devhandle, tsbid, 1, attr,
addr, &nmapped);
if (err != H_EOK || nmapped != 1)
diff --git a/sys/arch/sparc64/dev/vrng.c b/sys/arch/sparc64/dev/vrng.c
index 0c5b55df8e4..6e225b36fc9 100644
--- a/sys/arch/sparc64/dev/vrng.c
+++ b/sys/arch/sparc64/dev/vrng.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vrng.c,v 1.3 2009/01/17 22:38:05 kettenis Exp $ */
+/* $OpenBSD: vrng.c,v 1.4 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
*
@@ -119,7 +119,7 @@ vrng_attach(struct device *parent, struct device *self, void *aux)
ctl[3].rng_wait_cnt = 0x3e;
if (!pmap_extract(pmap_kernel(), (vaddr_t)&ctl, &addr))
- panic("vrng_attach: pmap_extract failed\n");
+ panic("vrng_attach: pmap_extract failed");
err = hv_rng_ctl_write(addr, RNG_STATE_CONFIGURED, 0, &delta);
if (err != H_EOK)
@@ -142,7 +142,7 @@ vrng_rnd(void *v)
int err;
if (!pmap_extract(pmap_kernel(), (vaddr_t)&rnd, &addr))
- panic("vrng_rnd: pmap_extract failed\n");
+ panic("vrng_rnd: pmap_extract failed");
err = hv_rng_data_read(addr, &delta);
if (err == H_EOK) {
#if 0