etherwpi: remove debug prints, use iprint() in interrupt
This commit is contained in:
parent
8799bf292d
commit
37156fb0b2
1 changed files with 1 additions and 5 deletions
|
@ -552,14 +552,10 @@ wpiinit(Ether *edev)
|
||||||
g->maxpwr = b[60];
|
g->maxpwr = b[60];
|
||||||
g->chan = b[61];
|
g->chan = b[61];
|
||||||
g->temp = get16(b+62);
|
g->temp = get16(b+62);
|
||||||
print("pwrgroup %d: %d %d %d\n", i, g->chan, g->maxpwr, g->temp);
|
|
||||||
print("samples");
|
|
||||||
for(j = 0; j < 5; j++){
|
for(j = 0; j < 5; j++){
|
||||||
g->samples[j].index = b[j*4];
|
g->samples[j].index = b[j*4];
|
||||||
g->samples[j].power = b[j*4+1];
|
g->samples[j].power = b[j*4+1];
|
||||||
print(", %d %d", g->samples[j].index, g->samples[j].power);
|
|
||||||
}
|
}
|
||||||
print("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
poweroff(ctlr);
|
poweroff(ctlr);
|
||||||
|
@ -1741,7 +1737,7 @@ wpiinterrupt(Ureg*, void *arg)
|
||||||
receive(ctlr);
|
receive(ctlr);
|
||||||
if(isr & Ierr){
|
if(isr & Ierr){
|
||||||
ctlr->broken = 1;
|
ctlr->broken = 1;
|
||||||
print("#l%d: fatal firmware error, lastcmd %ud\n", edev->ctlrno, ctlr->tx[4].lastcmd);
|
iprint("#l%d: fatal firmware error, lastcmd %ud\n", edev->ctlrno, ctlr->tx[4].lastcmd);
|
||||||
}
|
}
|
||||||
ctlr->wait.m |= isr;
|
ctlr->wait.m |= isr;
|
||||||
if(ctlr->wait.m & ctlr->wait.w)
|
if(ctlr->wait.m & ctlr->wait.w)
|
||||||
|
|
Loading…
Reference in a new issue