summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc/apic.c2
-rw-r--r--sys/src/9/pc/devtv.c4
-rw-r--r--sys/src/9/pc/ether2114x.c6
-rw-r--r--sys/src/9/pc/ether79c970.c2
-rw-r--r--sys/src/9/pc/ether82557.c2
-rw-r--r--sys/src/9/pc/ether8390.c2
-rw-r--r--sys/src/9/pc/etherelnk3.c2
-rw-r--r--sys/src/9/pc/etherm10g.c2
-rw-r--r--sys/src/9/pc/ethervt6102.c2
-rw-r--r--sys/src/9/pc/ethervt6105m.c2
-rw-r--r--sys/src/9/pc/mmu.c2
-rw-r--r--sys/src/9/pc/sdiahci.c2
-rw-r--r--sys/src/9/port/debugalloc.c2
-rw-r--r--sys/src/9/port/dev.c2
-rw-r--r--sys/src/9/port/devmnt.c2
-rw-r--r--sys/src/9/port/proc.c2
-rw-r--r--sys/src/9/port/qlock.c4
17 files changed, 21 insertions, 21 deletions
diff --git a/sys/src/9/pc/apic.c b/sys/src/9/pc/apic.c
index ccaa8b5c7..b2ed0aa9a 100644
--- a/sys/src/9/pc/apic.c
+++ b/sys/src/9/pc/apic.c
@@ -152,7 +152,7 @@ lapictimerinit(void)
if(lapictimer.hz > hz-(hz/10)){
if(lapictimer.hz > hz+(hz/10))
- panic("lapic clock %lld > cpu clock > %lld\n",
+ panic("lapic clock %lld > cpu clock > %lld",
lapictimer.hz, hz);
lapictimer.hz = hz;
}
diff --git a/sys/src/9/pc/devtv.c b/sys/src/9/pc/devtv.c
index 7dd729004..4e0c32792 100644
--- a/sys/src/9/pc/devtv.c
+++ b/sys/src/9/pc/devtv.c
@@ -608,7 +608,7 @@ tvinit(void)
}
else if (i2cread(tv, i2c_stbee, &v)) {
USED(t);
- panic("#V: Cannot deal with STB cards\n");
+ panic("#V: Cannot deal with STB cards");
}
else if (i2cread(tv, i2c_miroproee, &v)) {
tv->board = Bt848_miropro;
@@ -1449,7 +1449,7 @@ vstart(Tv *tv, int nframes, int w, int h, int stride)
&frames[i].fjmp);
break;
default:
- panic("vstart: Unsupport colorformat\n");
+ panic("vstart: Unsupport colorformat");
}
}
diff --git a/sys/src/9/pc/ether2114x.c b/sys/src/9/pc/ether2114x.c
index 4e1b6ebdc..fbbfab210 100644
--- a/sys/src/9/pc/ether2114x.c
+++ b/sys/src/9/pc/ether2114x.c
@@ -562,7 +562,7 @@ interrupt(Ureg*, void* arg)
* Anything left not catered for?
*/
if(status)
- panic("#l%d: status %8.8uX\n", ether->ctlrno, status);
+ panic("#l%d: status %8.8uX", ether->ctlrno, status);
}
}
@@ -588,7 +588,7 @@ ctlrinit(Ether* ether)
for(des = ctlr->rdr; des < &ctlr->rdr[ctlr->nrdr]; des++){
des->bp = iallocb(Rbsz);
if(des->bp == nil)
- panic("can't allocate ethernet receive ring\n");
+ panic("can't allocate ethernet receive ring");
des->status = Own;
des->control = Rbsz;
des->addr = PCIWADDR(des->bp->rp);
@@ -621,7 +621,7 @@ ctlrinit(Ether* ether)
}
bp = iallocb(Eaddrlen*2*16);
if(bp == nil)
- panic("can't allocate ethernet setup buffer\n");
+ panic("can't allocate ethernet setup buffer");
memset(bp->rp, 0xFF, sizeof(bi));
for(i = sizeof(bi); i < sizeof(bi)*16; i += sizeof(bi))
memmove(bp->rp+i, bi, sizeof(bi));
diff --git a/sys/src/9/pc/ether79c970.c b/sys/src/9/pc/ether79c970.c
index d539cb1d4..556a1deb1 100644
--- a/sys/src/9/pc/ether79c970.c
+++ b/sys/src/9/pc/ether79c970.c
@@ -240,7 +240,7 @@ ringinit(Ctlr* ctlr)
for(dre = ctlr->rdr; dre < &ctlr->rdr[Nrdre]; dre++){
dre->bp = iallocb(Rbsize);
if(dre->bp == nil)
- panic("can't allocate ethernet receive ring\n");
+ panic("can't allocate ethernet receive ring");
dre->addr = PADDR(dre->bp->rp);
dre->md2 = 0;
dre->md1 = Own|(-Rbsize & 0xFFFF);
diff --git a/sys/src/9/pc/ether82557.c b/sys/src/9/pc/ether82557.c
index 8f5c9ebf1..b71909bbf 100644
--- a/sys/src/9/pc/ether82557.c
+++ b/sys/src/9/pc/ether82557.c
@@ -754,7 +754,7 @@ interrupt(Ureg*, void* arg)
}
if(status & (StatCX|StatFR|StatCNA|StatRNR|StatMDI|StatSWI))
- panic("#l%d: status %#ux\n", ether->ctlrno, status);
+ panic("#l%d: status %#ux", ether->ctlrno, status);
}
}
diff --git a/sys/src/9/pc/ether8390.c b/sys/src/9/pc/ether8390.c
index 50d7ce396..f38d6900a 100644
--- a/sys/src/9/pc/ether8390.c
+++ b/sys/src/9/pc/ether8390.c
@@ -309,7 +309,7 @@ top:
crda = regr(ctlr, Crda0);
crda |= regr(ctlr, Crda1)<<8;
if(crda != to)
- panic("crda write %lud to %lud\n", crda, to);
+ panic("crda write %lud to %lud", crda, to);
break;
}
diff --git a/sys/src/9/pc/etherelnk3.c b/sys/src/9/pc/etherelnk3.c
index 45175d86a..cf20943e0 100644
--- a/sys/src/9/pc/etherelnk3.c
+++ b/sys/src/9/pc/etherelnk3.c
@@ -1145,7 +1145,7 @@ interrupt(Ureg*, void* arg)
* Panic if there are any interrupts not dealt with.
*/
if(status & interruptMask)
- panic("#l%d: interrupt mask 0x%uX\n", ether->ctlrno, status);
+ panic("#l%d: interrupt mask 0x%uX", ether->ctlrno, status);
COMMAND(port, AcknowledgeInterrupt, interruptLatch);
if(ctlr->cbfn != nil)
diff --git a/sys/src/9/pc/etherm10g.c b/sys/src/9/pc/etherm10g.c
index a3bde6031..69a1245aa 100644
--- a/sys/src/9/pc/etherm10g.c
+++ b/sys/src/9/pc/etherm10g.c
@@ -925,7 +925,7 @@ replenish(Rx *rx)
e -= 8;
}
if(e && p->n > 7+1)
- print("m10g: should panic? pool->n = %d\n", p->n);
+ print("m10g: should panic? pool->n = %d", p->n);
}
/*
diff --git a/sys/src/9/pc/ethervt6102.c b/sys/src/9/pc/ethervt6102.c
index 60fa6b120..9354a4f04 100644
--- a/sys/src/9/pc/ethervt6102.c
+++ b/sys/src/9/pc/ethervt6102.c
@@ -789,7 +789,7 @@ vt6102interrupt(Ureg*, void* arg)
ctlr->tintr++;
}
if(isr)
- panic("vt6102: isr %4.4uX\n", isr);
+ panic("vt6102: isr %4.4uX", isr);
}
ctlr->imr = imr;
csr16w(ctlr, Imr, ctlr->imr);
diff --git a/sys/src/9/pc/ethervt6105m.c b/sys/src/9/pc/ethervt6105m.c
index e91c7241a..64b943431 100644
--- a/sys/src/9/pc/ethervt6105m.c
+++ b/sys/src/9/pc/ethervt6105m.c
@@ -949,7 +949,7 @@ vt6105Minterrupt(Ureg*, void* arg)
ctlr->tintr++;
}
if(isr)
- panic("vt6105M: isr %4.4uX\n", isr);
+ panic("vt6105M: isr %4.4uX", isr);
}
ctlr->imr = imr;
csr16w(ctlr, Imr, ctlr->imr);
diff --git a/sys/src/9/pc/mmu.c b/sys/src/9/pc/mmu.c
index 93dd86f85..fcc8cc69b 100644
--- a/sys/src/9/pc/mmu.c
+++ b/sys/src/9/pc/mmu.c
@@ -759,7 +759,7 @@ pdbunmap(ulong *pdb, ulong va, int size)
panic("vunmap: not mapped");
if(*table & PTESIZE){
if(va & 4*MB-1)
- panic("vunmap: misaligned: %#p\n", va);
+ panic("vunmap: misaligned: %#p", va);
*table = 0;
va += 4*MB;
continue;
diff --git a/sys/src/9/pc/sdiahci.c b/sys/src/9/pc/sdiahci.c
index c06b6a0dd..6d5008286 100644
--- a/sys/src/9/pc/sdiahci.c
+++ b/sys/src/9/pc/sdiahci.c
@@ -1272,7 +1272,7 @@ blink(Drive *d, ulong t)
microdelay(1);
switch(c->enctype){
default:
- panic("%s: bad led type %d\n", dnam(d), c->enctype);
+ panic("%s: bad led type %d", dnam(d), c->enctype);
case Elmt:
memset(&msg, 0, sizeof msg);
msg.type = Mled;
diff --git a/sys/src/9/port/debugalloc.c b/sys/src/9/port/debugalloc.c
index 48f9f7126..05a9a5c6d 100644
--- a/sys/src/9/port/debugalloc.c
+++ b/sys/src/9/port/debugalloc.c
@@ -655,7 +655,7 @@ poolcompact(Pool *pool)
USED(recov);
if(nb > 0){
if(nb < pool->quanta+1)
- panic("poolcompact: leftover too small\n");
+ panic("poolcompact: leftover too small");
end->size = nb;
pooladd(pool, end);
}
diff --git a/sys/src/9/port/dev.c b/sys/src/9/port/dev.c
index aa86dad5d..3d0eb4280 100644
--- a/sys/src/9/port/dev.c
+++ b/sys/src/9/port/dev.c
@@ -149,7 +149,7 @@ devclone(Chan *c)
Chan *nc;
if(c->flag & COPEN)
- panic("clone of open file type %C\n", devtab[c->type]->dc);
+ panic("clone of open file type %C", devtab[c->type]->dc);
nc = newchan();
diff --git a/sys/src/9/port/devmnt.c b/sys/src/9/port/devmnt.c
index adb65155b..12aa51459 100644
--- a/sys/src/9/port/devmnt.c
+++ b/sys/src/9/port/devmnt.c
@@ -1134,7 +1134,7 @@ mntchk(Chan *c)
/* This routine is mostly vestiges of prior lives; now it's just sanity checking */
if(c->mchan == nil)
- panic("mntchk 1: nil mchan c %s\n", chanpath(c));
+ panic("mntchk 1: nil mchan c %s", chanpath(c));
m = c->mchan->mux;
diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c
index b3249ec97..a13164d8d 100644
--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -718,7 +718,7 @@ procinit0(void) /* bad planning - clashes with devproc.c */
procalloc.free = xalloc(conf.nproc*sizeof(Proc));
if(procalloc.free == nil){
xsummary();
- panic("cannot allocate %lud procs (%ludMB)\n", conf.nproc, conf.nproc*sizeof(Proc)/(1024*1024));
+ panic("cannot allocate %lud procs (%ludMB)", conf.nproc, conf.nproc*sizeof(Proc)/(1024*1024));
}
procalloc.arena = procalloc.free;
diff --git a/sys/src/9/port/qlock.c b/sys/src/9/port/qlock.c
index 445161145..df6848b97 100644
--- a/sys/src/9/port/qlock.c
+++ b/sys/src/9/port/qlock.c
@@ -27,7 +27,7 @@ eqlock(QLock *q)
if(up != nil && up->eql)
print("eqlock: %#p: eql %p\n", getcallerpc(&q), up->eql);
if(q->use.key == 0x55555555)
- panic("eqlock: q %#p, key 5*\n", q);
+ panic("eqlock: q %#p, key 5*", q);
lock(&q->use);
rwstats.qlock++;
@@ -74,7 +74,7 @@ qlock(QLock *q)
if(up != nil && up->eql)
print("qlock: %#p: eql %p\n", getcallerpc(&q), up->eql);
if(q->use.key == 0x55555555)
- panic("qlock: q %#p, key 5*\n", q);
+ panic("qlock: q %#p, key 5*", q);
lock(&q->use);
rwstats.qlock++;
if(!q->locked) {