panic: trailing newlines

This commit is contained in:
cinap_lenrek 2012-03-28 18:13:45 +02:00
parent c3004ddf25
commit 73b7f5f12c
17 changed files with 21 additions and 21 deletions

View file

@ -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;
}

View file

@ -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");
}
}

View file

@ -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));

View file

@ -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);

View file

@ -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);
}
}

View file

@ -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;
}

View file

@ -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)

View file

@ -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);
}
/*

View file

@ -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);

View file

@ -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);

View file

@ -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;

View file

@ -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;

View file

@ -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);
}

View file

@ -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();

View file

@ -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;

View file

@ -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;

View file

@ -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) {