ref: 37156fb0b2a2f15614a34875c23892c6d9b95f90
parent: 8799bf292d718f9dae45c3b897cba20d8d1246b5
author: cinap_lenrek <[email protected]>
date: Sun Jun 28 17:13:34 EDT 2015
etherwpi: remove debug prints, use iprint() in interrupt
--- a/sys/src/9/pc/etherwpi.c
+++ b/sys/src/9/pc/etherwpi.c
@@ -552,14 +552,10 @@
g->maxpwr = b[60];
g->chan = b[61];
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++){
g->samples[j].index = b[j*4];
g->samples[j].power = b[j*4+1];
- print(", %d %d", g->samples[j].index, g->samples[j].power);
}
- print("\n");
}
poweroff(ctlr);
@@ -1741,7 +1737,7 @@
receive(ctlr);
if(isr & Ierr){
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;
if(ctlr->wait.m & ctlr->wait.w)