-/* $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 $ */
/*-
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,
-/* $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 $ */
/*
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");
}
-/* $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>
*
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);
}
/*
-/* $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>
*
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);
-/* $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>
*
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 |
-/* $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>
*
*/
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);
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)
-/* $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>
*
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
}
-/* $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 $ */
/*
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);
}
}
-/* $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
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);
-/* $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
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;
}
-/* $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>
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
#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
-/* $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
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;
}
-/* $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
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);
}
-/* $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 $ */
/*
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
-/* $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)
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
-/* $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 $ */
/*-
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);
}
/*
-/* $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.
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;
}
/* 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);
}
-/* $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.
#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)) =
-/* $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.
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");
}
-/* $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.
I128_BUF_CTRL, I128_BC_PSIZ_32B);
break;
default:
- panic("unsupported depth\n");
+ panic("unsupported depth");
break;
}
-/* $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 $ */
/*
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)
-/* $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
*
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)
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
-/* $OpenBSD: aha1742.c,v 1.41 2010/06/28 18:31:01 krw Exp $ */
+/* $OpenBSD: aha1742.c,v 1.42 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: aha1742.c,v 1.61 1996/05/12 23:40:01 mycroft Exp $ */
/*
delay(10);
}
if (!wait)
- panic("%s: board not responding\n", sc->sc_dev.dv_xname);
+ panic("%s: board not responding", sc->sc_dev.dv_xname);
/* don't know this will work */
bus_space_write_4(iot, ioh, MBOXOUT0, KVTOPHYS(ecb));
delay(10);
}
if (!wait)
- panic("%s: board not responding\n", sc->sc_dev.dv_xname);
+ panic("%s: board not responding", sc->sc_dev.dv_xname);
/* don't know this will work */
bus_space_write_4(iot, ioh, MBOXOUT0, cmd);
-/* $OpenBSD: uha_eisa.c,v 1.11 2010/06/26 23:24:44 guenther Exp $ */
+/* $OpenBSD: uha_eisa.c,v 1.12 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: uha_eisa.c,v 1.5 1996/10/21 22:31:07 thorpej Exp $ */
/*
delay(100);
}
if (!spincount)
- panic("%s: uha_start_mbox, board not responding\n",
+ panic("%s: uha_start_mbox, board not responding",
sc->sc_dev.dv_xname);
bus_space_write_4(iot, ioh, U24_OGMPTR, KVTOPHYS(mscp));
-/* $OpenBSD: aac.c,v 1.47 2010/06/28 18:31:01 krw Exp $ */
+/* $OpenBSD: aac.c,v 1.48 2010/08/07 03:50:01 krw Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
co = (struct aac_container *)malloc(sizeof *co, M_DEVBUF,
M_NOWAIT);
if (co == NULL)
- panic("Out of memory?!\n");
+ panic("Out of memory?!");
bzero(co, sizeof *co);
AAC_DPRINTF(AAC_D_MISC,
("%s: id %x name '%.16s' size %u type %d\n",
}
if (sc->aifflags & AAC_AIFFLAGS_RUNNING)
- panic("Cannot shutdown AIF thread\n");
+ panic("Cannot shutdown AIF thread");
if ((error = aac_shutdown(dev)))
return(error);
* catastrophic since it means that bus_dmamap_load() failed.
*/
if (aac_map_command(cm) != 0)
- panic("aac: error mapping command %p\n", cm);
+ panic("aac: error mapping command %p", cm);
AAC_DPRINTF(AAC_D_CMD, ("\n%s: another command",
sc->aac_dev.dv_xname));
opcode = WRITE_COMMAND;
break;
default:
- panic("%s: invalid opcode %#x\n", sc->aac_dev.dv_xname,
+ panic("%s: invalid opcode %#x", sc->aac_dev.dv_xname,
xs->cmd->opcode);
}
-/* $OpenBSD: acx.c,v 1.95 2009/09/13 14:42:52 krw Exp $ */
+/* $OpenBSD: acx.c,v 1.96 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
int error;
if (txbuf->tb_mbuf != NULL)
- panic("free TX buf has mbuf installed\n");
+ panic("free TX buf has mbuf installed");
error = 0;
-/* $OpenBSD: adv.c,v 1.32 2010/06/28 18:31:01 krw Exp $ */
+/* $OpenBSD: adv.c,v 1.33 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: adv.c,v 1.6 1998/10/28 20:39:45 dante Exp $ */
/*
bus_dmamap_unload(dmat, ccb->dmamap_xfer);
}
if ((ccb->flags & CCB_ALLOC) == 0) {
- panic("%s: exiting ccb not allocated!\n", sc->sc_dev.dv_xname);
+ panic("%s: exiting ccb not allocated!", sc->sc_dev.dv_xname);
return;
}
/*
-/* $OpenBSD: adw.c,v 1.46 2010/06/28 18:31:01 krw Exp $ */
+/* $OpenBSD: adw.c,v 1.47 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: adw.c,v 1.23 2000/05/27 18:24:50 dante Exp $ */
/*
TAILQ_REMOVE(&sc->sc_pending_ccb, ccb, chain);
if ((ccb->flags & CCB_ALLOC) == 0) {
- panic("%s: unallocated ccb found on pending list!\n",
+ panic("%s: unallocated ccb found on pending list!",
sc->sc_dev.dv_xname);
adw_free_ccb(sc, ccb);
return;
-/* $OpenBSD: bha.c,v 1.25 2010/06/28 18:31:02 krw Exp $ */
+/* $OpenBSD: bha.c,v 1.26 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: bha.c,v 1.27 1998/11/19 21:53:00 thorpej Exp $ */
#undef BHADEBUG
*/
#ifdef BHADIAG
if (ccb->flags & CCB_SENDING) {
- panic("%s: exiting ccb still in transit!\n",
+ panic("%s: exiting ccb still in transit!",
sc->sc_dev.dv_xname);
return;
}
#endif
if ((ccb->flags & CCB_ALLOC) == 0) {
- panic("%s: exiting ccb not allocated!\n",
+ panic("%s: exiting ccb not allocated!",
sc->sc_dev.dv_xname);
return;
}
*/
bha_collect_mbo(sc);
if (ccb->flags & CCB_SENDING)
- panic("%s: not taking commands!\n", sc->sc_dev.dv_xname);
+ panic("%s: not taking commands!", sc->sc_dev.dv_xname);
#endif
/*
-/* $OpenBSD: bwi.c,v 1.93 2010/08/06 05:26:24 mglocker Exp $ */
+/* $OpenBSD: bwi.c,v 1.94 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
error = ENXIO;
goto fail;
} else
- panic("unknown phymode %d\n", phy->phy_mode);
+ panic("unknown phymode %d", phy->phy_mode);
printf(", address %s\n", ether_sprintf(ic->ic_myaddr));
if (phy->phy_rev >= 2 && rf->rf_type == BWI_RF_T_BCM2050)
host_flags &= ~BWI_HFLAG_GDC_WA;
} else {
- panic("unknown PHY mode %u\n", phy->phy_mode);
+ panic("unknown PHY mode %u", phy->phy_mode);
}
HFLAGS_WRITE(mac, host_flags);
IEEE80211_MODE_11G) & 0xf) * 2;
break;
default:
- panic("unsupported modtype %u\n", modtype);
+ panic("unsupported modtype %u", modtype);
}
MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, ofs + 0x20,
case 0x100:
return ((0x2093 | ext_lna));
default:
- panic("unsupported lpd\n");
+ panic("unsupported lpd");
}
} else {
ext_lna |= (loop << 8);
case 0x100:
return ((0x93 | ext_lna));
default:
- panic("unsupported lpd\n");
+ panic("unsupported lpd");
}
}
- panic("never reached\n");
+ panic("never reached");
return (0);
}
rate = 0;
break;
default:
- panic("unknown LED event %d\n", event);
+ panic("unknown LED event %d", event);
break;
}
bwi_led_blink_start(sc, bwi_led_duration[rate].on_dur,
else if (modtype == IEEE80211_MODTYPE_DS)
bwi_ds_plcp_header(plcp, pkt_len, rate);
else
- panic("unsupport modulation type %u\n", modtype);
+ panic("unsupport modulation type %u", modtype);
}
enum bwi_modtype
ack_rate = 48;
break;
default:
- panic("unsupported rate %d\n", rate);
+ panic("unsupported rate %d", rate);
}
return ack_rate;
}
case BWI_REGWIN_T_BUSPCIE:
return ("PCIE");
}
- panic("unknown regwin type 0x%04x\n", rw->rw_type);
+ panic("unknown regwin type 0x%04x", rw->rw_type);
return (NULL);
}
-/* $OpenBSD: mpi.c,v 1.155 2010/07/06 07:18:18 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.156 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
break;
default:
- panic("%s: unsupported context reply\n",
+ panic("%s: unsupported context reply",
DEVNAME(sc));
}
}
}
if (ccb->ccb_rcb == NULL)
- panic("%s: unable to do fw upload\n", DEVNAME(sc));
+ panic("%s: unable to do fw upload", DEVNAME(sc));
upp = ccb->ccb_rcb->rcb_reply;
if (letoh16(upp->ioc_status) != MPI_IOCSTATUS_SUCCESS)
mpi_wait(sc, ccb);
if (ccb->ccb_rcb == NULL)
- panic("%s: unable to fetch config header\n", DEVNAME(sc));
+ panic("%s: unable to fetch config header", DEVNAME(sc));
cp = ccb->ccb_rcb->rcb_reply;
DNPRINTF(MPI_D_MISC, "%s: action: 0x%02x msg_length: %d function: "
-/* $OpenBSD: pgt.c,v 1.59 2010/05/19 15:27:35 oga Exp $ */
+/* $OpenBSD: pgt.c,v 1.60 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
DPRINTF(("IEEE80211_MODE_AUTO\n"));
break;
default:
- panic("unknown mode %d\n", ic->ic_curmode);
+ panic("unknown mode %d", ic->ic_curmode);
}
switch (sc->sc_80211_ioc_auth) {
-/* $OpenBSD: re.c,v 1.124 2010/07/27 20:53:39 kettenis Exp $ */
+/* $OpenBSD: re.c,v 1.125 2010/08/07 03:50:01 krw Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
break;
default:
- panic("%s: unknown imtype %d\n",
+ panic("%s: unknown imtype %d",
sc->sc_dev.dv_xname, imtype);
}
}
break;
default:
- panic("%s: unknown imtype %d\n",
+ panic("%s: unknown imtype %d",
sc->sc_dev.dv_xname, imtype);
}
}
-/* $OpenBSD: uha.c,v 1.20 2010/06/30 19:06:16 mk Exp $ */
+/* $OpenBSD: uha.c,v 1.21 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: uha.c,v 1.3 1996/10/13 01:37:29 christos Exp $ */
#undef UHADEBUG
* into the xfer and call whoever started it
*/
if ((mscp->flags & MSCP_ALLOC) == 0) {
- panic("%s: exiting ccb not allocated!\n", sc->sc_dev.dv_xname);
+ panic("%s: exiting ccb not allocated!", sc->sc_dev.dv_xname);
return;
}
if (xs->error == XS_NOERROR) {
-/* $OpenBSD: aha.c,v 1.72 2010/07/02 02:29:45 tedu Exp $ */
+/* $OpenBSD: aha.c,v 1.73 2010/08/07 03:50:01 krw Exp $ */
/* $NetBSD: aha.c,v 1.11 1996/05/12 23:51:23 mycroft Exp $ */
#undef AHADIAG
*/
aha_collect_mbo(sc);
if (ccb->flags & CCB_SENDING)
- panic("%s: not taking commands!\n", sc->sc_dev.dv_xname);
+ panic("%s: not taking commands!", sc->sc_dev.dv_xname);
#endif
/*
-/* $OpenBSD: arc.c,v 1.90 2010/07/18 12:49:10 mk Exp $ */
+/* $OpenBSD: arc.c,v 1.91 2010/08/07 03:50:02 krw Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
#if NBIO > 0
if (bio_register(self, arc_bioctl) != 0)
- panic("%s: bioctl registration failed\n", DEVNAME(sc));
+ panic("%s: bioctl registration failed", DEVNAME(sc));
#ifndef SMALL_KERNEL
/*
-/* $OpenBSD: if_bge.c,v 1.297 2010/08/02 19:36:13 kettenis Exp $ */
+/* $OpenBSD: if_bge.c,v 1.298 2010/08/07 03:50:02 krw Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
r->bge_bd.bge_len = dmap->dm_segs[0].ds_len;
break;
default:
- panic("%s: %d segments\n", __func__, dmap->dm_nsegs);
+ panic("%s: %d segments", __func__, dmap->dm_nsegs);
}
bus_dmamap_sync(sc->bge_dmatag, sc->bge_ring_map,
-/* $OpenBSD: if_che.c,v 1.8 2007/05/30 05:11:53 reyk Exp $ */
+/* $OpenBSD: if_che.c,v 1.9 2010/08/07 03:50:02 krw Exp $ */
/*
* Copyright (c) 2007 Claudio Jeker <claudio@openbsd.org>
int rv;
if (addr + count * sizeof(u_int32_t) > CHE_SF_SIZE || (addr & 3))
- panic("%s: che_read_flash_multi4 bad params\n", DEVNAME(sc));
+ panic("%s: che_read_flash_multi4 bad params", DEVNAME(sc));
addr = swap32(addr) | CHE_SF_RD_DATA;
-/* $OpenBSD: if_jme.c,v 1.22 2010/05/19 15:27:35 oga Exp $ */
+/* $OpenBSD: if_jme.c,v 1.23 2010/08/07 03:50:02 krw Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
if (maxsegs > JME_MAXTXSEGS)
maxsegs = JME_MAXTXSEGS;
if (maxsegs < (sc->jme_txd_spare - 1))
- panic("%s: not enough segments %d\n", sc->sc_dev.dv_xname,
+ panic("%s: not enough segments %d", sc->sc_dev.dv_xname,
maxsegs);
error = bus_dmamap_load_mbuf(sc->sc_dmat, txd->tx_dmamap,
txd = &sc->jme_cdata.jme_txdesc[cons];
if (txd->tx_m == NULL)
- panic("%s: freeing NULL mbuf!\n", sc->sc_dev.dv_xname);
+ panic("%s: freeing NULL mbuf!", sc->sc_dev.dv_xname);
status = letoh32(txd->tx_desc->flags);
if ((status & JME_TD_OWN) == JME_TD_OWN)
txd->tx_m = NULL;
sc->jme_cdata.jme_tx_cnt -= txd->tx_ndesc;
if (sc->jme_cdata.jme_tx_cnt < 0)
- panic("%s: Active Tx desc counter was garbled\n",
+ panic("%s: Active Tx desc counter was garbled",
sc->sc_dev.dv_xname);
txd->tx_ndesc = 0;
}
-/* $OpenBSD: qli_pci.c,v 1.19 2010/06/28 18:31:02 krw Exp $ */
+/* $OpenBSD: qli_pci.c,v 1.20 2010/08/07 03:50:02 krw Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2007 David Collins <dave@davec.name>
if (intr & QLI_REG_CTRLSTAT_SCSI_COMPL_INTR) {
/* io completion */
/* XXX */
- panic("%s: qli_intr io completion not implemented\n",
+ panic("%s: qli_intr io completion not implemented",
DEVNAME(sc));
}
-/* $OpenBSD: softraid_raid6.c,v 1.18 2010/07/02 09:20:26 jsing Exp $ */
+/* $OpenBSD: softraid_raid6.c,v 1.19 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org>
die:
splx(s); /* XXX */
panic("%s: %s: %s: invalid chunk state transition "
- "%d -> %d\n", DEVNAME(sd->sd_sc),
+ "%d -> %d", DEVNAME(sd->sd_sc),
sd->sd_meta->ssd_devname,
sd->sd_vol.sv_chunks[c]->src_meta.scmi.scm_devname,
old_state, new_state);
default:
die:
- panic("%s: %s: invalid volume state transition %d -> %d\n",
+ panic("%s: %s: invalid volume state transition %d -> %d",
DEVNAME(sd->sd_sc), sd->sd_meta->ssd_devname,
old_state, new_state);
/* NOTREACHED */
-/* $OpenBSD: softraid_raidp.c,v 1.18 2010/07/02 09:20:26 jsing Exp $ */
+/* $OpenBSD: softraid_raidp.c,v 1.19 2010/08/07 03:50:01 krw Exp $ */
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Jordan Hargrave <jordan@openbsd.org>
die:
splx(s); /* XXX */
panic("%s: %s: %s: invalid chunk state transition "
- "%d -> %d\n", DEVNAME(sd->sd_sc),
+ "%d -> %d", DEVNAME(sd->sd_sc),
sd->sd_meta->ssd_devname,
sd->sd_vol.sv_chunks[c]->src_meta.scmi.scm_devname,
old_state, new_state);
default:
die:
- panic("%s: %s: invalid volume state transition %d -> %d\n",
+ panic("%s: %s: invalid volume state transition %d -> %d",
DEVNAME(sd->sd_sc), sd->sd_meta->ssd_devname,
old_state, new_state);
/* NOTREACHED */
-/* $OpenBSD: if_urtw.c,v 1.29 2010/01/21 21:30:42 miod Exp $ */
+/* $OpenBSD: if_urtw.c,v 1.30 2010/08/07 03:50:02 krw Exp $ */
/*-
* Copyright (c) 2009 Martynas Venckus <martynas@openbsd.org>
return (0);
fail:
- panic("unsupported RF chip %d\n", data & 0xff);
+ panic("unsupported RF chip %d", data & 0xff);
/* NOTREACHED */
}
error = urtw_led_mode3(sc, mode);
break;
default:
- panic("unsupported LED mode %d\n", sc->sc_strategy);
+ panic("unsupported LED mode %d", sc->sc_strategy);
/* NOTREACHED */
}
data |= URTW_MSR_LINK_STA;
break;
default:
- panic("unsupported operation mode 0x%x\n",
+ panic("unsupported operation mode 0x%x",
ic->ic_opmode);
/* NOTREACHED */
}
-/* $OpenBSD: pf_table.c,v 1.84 2010/06/28 18:50:37 claudio Exp $ */
+/* $OpenBSD: pf_table.c,v 1.85 2010/08/07 03:50:02 krw Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
pfi_kif_ref(ke->pfrke_rkif, PFI_KIF_REF_ROUTE);
break;
default:
- panic("unknown pfrke_type %d\n", ke->pfrke_type);
+ panic("unknown pfrke_type %d", ke->pfrke_type);
break;
}
-/* $OpenBSD: ieee80211.c,v 1.38 2009/11/21 18:09:31 damien Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.39 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
}
if ((ic->ic_ibss_chan == NULL) || isclr(ic->ic_chan_active,
ieee80211_chan2ieee(ic, ic->ic_ibss_chan)))
- panic("Bad IBSS channel %u\n",
+ panic("Bad IBSS channel %u",
ieee80211_chan2ieee(ic, ic->ic_ibss_chan));
}
-/* $OpenBSD: ieee80211_node.c,v 1.61 2010/07/19 18:53:52 damien Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.62 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
if (!(ni->ni_flags & IEEE80211_NODE_ERP)) {
#ifdef DIAGNOSTIC
if (ic->ic_nonerpsta == 0) {
- panic("bogus non-ERP station count %d\n",
+ panic("bogus non-ERP station count %d",
ic->ic_nonerpsta);
}
#endif
-/* $OpenBSD: ieee80211_proto.c,v 1.43 2010/07/28 21:24:52 deraadt Exp $ */
+/* $OpenBSD: ieee80211_proto.c,v 1.44 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */
/*-
case IEEE80211_S_SCAN: /* adhoc/hostap mode */
case IEEE80211_S_ASSOC: /* infra mode */
if (ni->ni_txrate >= ni->ni_rates.rs_nrates)
- panic("%s: bogus xmit rate %u setup\n",
+ panic("%s: bogus xmit rate %u setup",
__func__, ni->ni_txrate);
if (ifp->if_flags & IFF_DEBUG) {
printf("%s: %s with %s ssid ",
-/* $OpenBSD: ip6_output.c,v 1.116 2010/07/09 16:58:06 reyk Exp $ */
+/* $OpenBSD: ip6_output.c,v 1.117 2010/08/07 03:50:02 krw Exp $ */
/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */
/*
break;
default: /* should not happen */
#ifdef DIAGNOSTIC
- panic("ip6_getpcbopt: unexpected option\n");
+ panic("ip6_getpcbopt: unexpected option");
#endif
return (ENOPROTOOPT);
}
-/* $OpenBSD: nfs_bio.c,v 1.71 2010/04/12 16:37:38 beck Exp $ */
+/* $OpenBSD: nfs_bio.c,v 1.72 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */
/*
on = 0;
break;
default:
- panic("nfsbioread: type %x unexpected\n", vp->v_type);
+ panic("nfsbioread: type %x unexpected", vp->v_type);
break;
}
error = nfs_readlinkrpc(vp, uiop, curproc->p_ucred);
break;
default:
- panic("nfs_doio: type %x unexpected\n", vp->v_type);
+ panic("nfs_doio: type %x unexpected", vp->v_type);
break;
};
if (error) {
-/* $OpenBSD: nfs_node.c,v 1.51 2009/12/17 16:30:47 beck Exp $ */
+/* $OpenBSD: nfs_node.c,v 1.52 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: nfs_node.c,v 1.16 1996/02/18 11:53:42 fvdl Exp $ */
/*
return(0);
#ifdef DIAGNOSTIC
if (ap->a_vp->v_data == NULL)
- panic("NULL v_data (no nfsnode set up?) in vnode %p\n",
+ panic("NULL v_data (no nfsnode set up?) in vnode %p",
ap->a_vp);
#endif
np = VTONFS(ap->a_vp);
return(0);
#ifdef DIAGNOSTIC
if (ap->a_vp->v_data == NULL)
- panic("NULL v_data (no nfsnode set up?) in vnode %p\n",
+ panic("NULL v_data (no nfsnode set up?) in vnode %p",
ap->a_vp);
#endif
nmp = VFSTONFS(vp->v_mount);
-/* $OpenBSD: nfs_syscalls.c,v 1.90 2010/07/31 20:48:32 blambert Exp $ */
+/* $OpenBSD: nfs_syscalls.c,v 1.91 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */
/*
}
if (siz <= 0 || siz > NFS_MAXPACKET)
- panic("bad nfs svc reply, siz = %i\n", siz);
+ panic("bad nfs svc reply, siz = %i", siz);
m = mreq;
m->m_pkthdr.len = siz;
-/* $OpenBSD: scsi_base.c,v 1.190 2010/07/28 01:53:12 krw Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.191 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
#ifdef DIAGNOSTIC
if (xs->cookie != NULL)
- panic("xs->cookie != NULL in scsi_xs_sync\n");
+ panic("xs->cookie != NULL in scsi_xs_sync");
if (xs->done != NULL)
- panic("xs->done != NULL in scsi_xs_sync\n");
+ panic("xs->done != NULL in scsi_xs_sync");
#endif
/*
-/* $OpenBSD: uvm_init.c,v 1.27 2010/07/13 16:49:16 deraadt Exp $ */
+/* $OpenBSD: uvm_init.c,v 1.28 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: uvm_init.c,v 1.14 2000/06/27 17:29:23 mrg Exp $ */
/*
if (uvm_map(kernel_map, &kvm_start, 3 * PAGE_SIZE,
NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE,
UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_FIXED)))
- panic("uvm_init: cannot reserve dead beef @0x%x\n", DEADBEEF0);
+ panic("uvm_init: cannot reserve dead beef @0x%x", DEADBEEF0);
#endif
#ifdef DEADBEEF1
kvm_start = trunc_page(DEADBEEF1) - PAGE_SIZE;
if (uvm_map(kernel_map, &kvm_start, 3 * PAGE_SIZE,
NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE,
UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_FIXED)))
- panic("uvm_init: cannot reserve dead beef @0x%x\n", DEADBEEF1);
+ panic("uvm_init: cannot reserve dead beef @0x%x", DEADBEEF1);
#endif
/*
* init anonymous memory systems
-/* $OpenBSD: uvm_page.c,v 1.101 2010/06/27 03:03:49 thib Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.102 2010/08/07 03:50:02 krw Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
for (lcv = 0 ; lcv < vm_nphysseg ; lcv++) {
n = vm_physmem[lcv].end - vm_physmem[lcv].start;
if (n > pagecount) {
- panic("uvm_page_init: lost %ld page(s) in init\n",
+ panic("uvm_page_init: lost %ld page(s) in init",
(long)(n - pagecount));
/* XXXCDC: shouldn't happen? */
/* n = pagecount; */