remove sprints Reference: /n/atom/patch/applied/598snprint Date: Tue Jan 14 04:03:34 CET 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/nix/k10/ether82598.c Tue Jan 14 04:03:17 2014 +++ /sys/src/nix/k10/ether82598.c Tue Jan 14 04:03:19 2014 @@ -1041,11 +1041,11 @@ rxinit(c); txinit(c); - sprint(buf, "#l%dl", e->ctlrno); + snprint(buf, sizeof buf, "#l%dl", e->ctlrno); kproc(buf, lproc, e); - sprint(buf, "#l%dr", e->ctlrno); + snprint(buf, sizeof buf, "#l%dr", e->ctlrno); kproc(buf, rproc, e); - sprint(buf, "#l%dt", e->ctlrno); + snprint(buf, sizeof buf, "#l%dt", e->ctlrno); kproc(buf, tproc, e); } @@ -1181,7 +1181,7 @@ found: c->flag |= Factive; e->ctlr = c; - e->port = (uintptr)c->reg; + e->port = c->port; e->irq = c->p->intl; e->tbdf = c->p->tbdf; e->mbps = 10000; --- /sys/src/9/pc/ether82598.c Tue Jan 14 04:03:21 2014 +++ /sys/src/9/pc/ether82598.c Tue Jan 14 04:03:23 2014 @@ -1041,11 +1041,11 @@ rxinit(c); txinit(c); - sprint(buf, "#l%dl", e->ctlrno); + snprint(buf, sizeof buf, "#l%dl", e->ctlrno); kproc(buf, lproc, e); - sprint(buf, "#l%dr", e->ctlrno); + snprint(buf, sizeof buf, "#l%dr", e->ctlrno); kproc(buf, rproc, e); - sprint(buf, "#l%dt", e->ctlrno); + snprint(buf, sizeof buf, "#l%dt", e->ctlrno); kproc(buf, tproc, e); } @@ -1181,7 +1181,7 @@ found: c->flag |= Factive; e->ctlr = c; - e->port = (uintptr)c->reg; + e->port = c->port; e->irq = c->p->intl; e->tbdf = c->p->tbdf; e->mbps = 10000; --- /sys/src/9/pcpae/ether82598.c Tue Jan 14 04:03:25 2014 +++ /sys/src/9/pcpae/ether82598.c Tue Jan 14 04:03:26 2014 @@ -1041,11 +1041,11 @@ rxinit(c); txinit(c); - sprint(buf, "#l%dl", e->ctlrno); + snprint(buf, sizeof buf, "#l%dl", e->ctlrno); kproc(buf, lproc, e); - sprint(buf, "#l%dr", e->ctlrno); + snprint(buf, sizeof buf, "#l%dr", e->ctlrno); kproc(buf, rproc, e); - sprint(buf, "#l%dt", e->ctlrno); + snprint(buf, sizeof buf, "#l%dt", e->ctlrno); kproc(buf, tproc, e); } @@ -1181,7 +1181,7 @@ found: c->flag |= Factive; e->ctlr = c; - e->port = (uintptr)c->reg; + e->port = c->port; e->irq = c->p->intl; e->tbdf = c->p->tbdf; e->mbps = 10000;