ref: 73b7f5f12c77c6434c2ffbd2257ab0d0439731e7
parent: c3004ddf25d1940d5bc7aec9cf8db387add82f7f
author: cinap_lenrek <[email protected]>
date: Wed Mar 28 14:13:45 EDT 2012
panic: trailing newlines
--- a/sys/src/9/pc/apic.c
+++ b/sys/src/9/pc/apic.c
@@ -152,7 +152,7 @@
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;
}
--- a/sys/src/9/pc/devtv.c
+++ b/sys/src/9/pc/devtv.c
@@ -608,7 +608,7 @@
}
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 @@
&frames[i].fjmp);
break;
default:
- panic("vstart: Unsupport colorformat\n");
+ panic("vstart: Unsupport colorformat");
}
}
--- a/sys/src/9/pc/ether2114x.c
+++ b/sys/src/9/pc/ether2114x.c
@@ -562,7 +562,7 @@
* 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 @@
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 @@
}
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));
--- a/sys/src/9/pc/ether79c970.c
+++ b/sys/src/9/pc/ether79c970.c
@@ -240,7 +240,7 @@
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);
--- a/sys/src/9/pc/ether82557.c
+++ b/sys/src/9/pc/ether82557.c
@@ -754,7 +754,7 @@
}
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);
}
}
--- a/sys/src/9/pc/ether8390.c
+++ b/sys/src/9/pc/ether8390.c
@@ -309,7 +309,7 @@
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;
}
--- a/sys/src/9/pc/etherelnk3.c
+++ b/sys/src/9/pc/etherelnk3.c
@@ -1145,7 +1145,7 @@
* 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)
--- a/sys/src/9/pc/etherm10g.c
+++ b/sys/src/9/pc/etherm10g.c
@@ -925,7 +925,7 @@
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);
}
/*
--- a/sys/src/9/pc/ethervt6102.c
+++ b/sys/src/9/pc/ethervt6102.c
@@ -789,7 +789,7 @@
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);
--- a/sys/src/9/pc/ethervt6105m.c
+++ b/sys/src/9/pc/ethervt6105m.c
@@ -949,7 +949,7 @@
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);
--- a/sys/src/9/pc/mmu.c
+++ b/sys/src/9/pc/mmu.c
@@ -759,7 +759,7 @@
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;
--- a/sys/src/9/pc/sdiahci.c
+++ b/sys/src/9/pc/sdiahci.c
@@ -1272,7 +1272,7 @@
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;
--- a/sys/src/9/port/debugalloc.c
+++ b/sys/src/9/port/debugalloc.c
@@ -655,7 +655,7 @@
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);
}
--- a/sys/src/9/port/dev.c
+++ b/sys/src/9/port/dev.c
@@ -149,7 +149,7 @@
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();
--- a/sys/src/9/port/devmnt.c
+++ b/sys/src/9/port/devmnt.c
@@ -1134,7 +1134,7 @@
/* 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;
--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -718,7 +718,7 @@
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;
--- a/sys/src/9/port/qlock.c
+++ b/sys/src/9/port/qlock.c
@@ -27,7 +27,7 @@
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 @@
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) {