ref: c96fb5471a7dc83f0acd53e1f15da589ea13280a
parent: 4d59f9bd1a0051feaf9e52a2c10d6b05807c59f4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 17 17:55:39 EDT 2018
devusb: fix format print warnings for ep->ntds and ep->uframes
--- a/sys/src/9/port/devusb.c
+++ b/sys/src/9/port/devusb.c
@@ -293,11 +293,11 @@
s = seprint(s, se, " %s", usbmodename[ep->mode]);
s = seprint(s, se, " speed %s", spname[d->speed]);
s = seprint(s, se, " maxpkt %ld", ep->maxpkt);
- s = seprint(s, se, " ntds %ld", ep->ntds);
+ s = seprint(s, se, " ntds %d", ep->ntds);
s = seprint(s, se, " pollival %ld", ep->pollival);
s = seprint(s, se, " samplesz %ld", ep->samplesz);
s = seprint(s, se, " hz %ld", ep->hz);
- s = seprint(s, se, " uframes %ld", ep->uframes);
+ s = seprint(s, se, " uframes %d", ep->uframes);
s = seprint(s, se, " hub %d", ep->dev->hub);
s = seprint(s, se, " port %d", ep->dev->port);
s = seprint(s, se, " rootport %d", ep->dev->rootport);