M pc/kbd.c => pc/kbd.c +4 -9
@@ 296,8 296,8 @@ middle(int newval)
/*
* keyboard interrupt
*/
-int
-kbdintr0(void)
+void
+kbdintr(Ureg *ur)
{
int s, c, i, nk, nc;
static int esc1, esc2;
@@ 309,6 309,8 @@ kbdintr0(void)
static uchar kc[5];
int keyup;
+ USED(ur);
+
/*
* get status
*/
@@ 448,10 450,3 @@ dochar:
kbdputc(&kbdq, c);
return 0;
}
-
-void
-kbdintr(Ureg *ur)
-{
- while(kbdintr0() == 0)
- ;
-}
M port/devdk.c => port/devdk.c +3 -1
@@ 1175,6 1175,7 @@ dklisten(Chan *c)
int n, lineno, ts, window;
int from;
Chan *dc;
+ static int dts;
dp = &dk[c->dev];
from = STREAMID(c->qid.path);
@@ 1256,7 1257,8 @@ dklisten(Chan *c)
* this could be a duplicate request
*/
if(ts == lp->timestamp){
- print("dklisten: repeat timestamp %d\n", lineno);
+ if((dts++ % 1000) == 0)
+ print("dklisten: repeat timestamp %d\n", lineno);
if(lp->state != Lconnected)
dkanswer(c, lineno, DKbusy);
continue;