--- /sys/src/9/ip/il.c Mon Apr 25 00:00:00 2011 +++ /sys/src/9/ip/il.c Mon Apr 25 00:00:00 2011 @@ -189,7 +189,7 @@ { Ipht ht; - ulong stats[Nstats]; + uvlong stats[Nstats]; ulong csumerr; /* checksum errors */ ulong hlenerr; /* header length error */ @@ -434,7 +434,7 @@ p = buf; e = p+len; for(i = 0; i < Nstats; i++) - p = seprint(p, e, "%s: %lud\n", statnames[i], priv->stats[i]); + p = seprint(p, e, "%s: %llud\n", statnames[i], priv->stats[i]); return p - buf; } @@ -572,7 +572,7 @@ else st = iltype[ih->iltype]; ipriv->stats[CsumErrs]++; - netlog(il->f, Logil, "il: cksum %ux %ux, pkt(%s id %lud ack %lud %I/%d->%d)\n", + netlog(il->f, Logil, "il: cksum %ux %s, pkt(%ux id %ud ack %I/%d->%d)\n", csum, st, nhgetl(ih->ilid), nhgetl(ih->ilack), raddr, sp, dp); goto raise; } @@ -595,7 +595,7 @@ else st = iltype[ih->iltype]; ilreject(il->f, ih); /* no channel and not sync */ - netlog(il->f, Logil, "il: no channel, pkt(%s id %lud ack %lud %I/%ud->%ud)\n", + netlog(il->f, Logil, "il: no channel, pkt(%s id %ud ack %ud %I/%ud->%ud)\n", st, nhgetl(ih->ilid), nhgetl(ih->ilack), raddr, sp, dp); goto raise; } @@ -829,7 +829,7 @@ c = ic->conv; id = nhgetl(h->ilid); - netlog(c->p->f, Logil, "il: rexmit %d %ud: %d %d: %i %d/%d\n", id, ic->recvd, + netlog(c->p->f, Logil, "il: rexmit %lud %lud: %d %lud: %I %d/%d\n", id, ic->recvd, ic->rexmit, ic->timeout, c->raddr, c->lport, c->rport); @@ -852,14 +852,14 @@ ic = (Ilcb*)s->ptcl; USED(ic); - netlog(s->p->f, Logilmsg, "%11s rcv %d/%d snt %d/%d pkt(%s id %d ack %d %d->%d) ", + netlog(s->p->f, Logilmsg, "%11s rcv %lud/%lud snt %lud/%lud pkt(%s id %d ack %ud %ud->%ud) ", ilstates[ic->state], ic->rstart, ic->recvd, ic->start, ic->next, iltype[h->iltype], nhgetl(h->ilid), nhgetl(h->ilack), nhgets(h->ilsrc), nhgets(h->ildst)); _ilprocess(s, h, bp); - netlog(s->p->f, Logilmsg, "%11s rcv %d snt %d\n", ilstates[ic->state], ic->recvd, ic->next); + netlog(s->p->f, Logilmsg, "%11s rcv %lud snt %lud\n", ilstates[ic->state], ic->recvd, ic->next); } void @@ -948,7 +948,7 @@ id = nhgetl(h->ilid); /* Window checks */ if(id <= ic->recvd || id > ic->recvd+ic->window) { - netlog(s->p->f, Logil, "il: message outside window %ud <%ud-%ud>: %i %d/%d\n", + netlog(s->p->f, Logil, "il: message outside window %lud <%lud-%lud>: %I %d/%d\n", id, ic->recvd, ic->recvd+ic->window, s->raddr, s->lport, s->rport); freeblist(bp); return;