ref: b6becc7a642c9efc26143237758a95ec33c733cf
parent: 6ae50ce3303c483b553767dbe422c67c3861abf4
author: cinap_lenrek <[email protected]>
date: Sat Jun 6 11:17:08 EDT 2020
devpnp, devether, devusb: cast ISAConf.port to uvlong (for 32-bit implementations) The ISAConf.port might still be 32-bit on some archs.
--- a/sys/src/9/port/devether.c
+++ b/sys/src/9/port/devether.c
@@ -416,7 +416,7 @@
ether->type = cards[cardno].type;
print("#l%d: %s: %dMbps port 0x%lluX irq %d ea %E\n",
- ctlrno, ether->type, ether->mbps, ether->port, ether->irq, ether->ea);
+ ctlrno, ether->type, ether->mbps, (uvlong)ether->port, ether->irq, ether->ea);
/* compute log10(ether->mbps) into lg */
for(lg = 0, mb = ether->mbps; mb >= 10; lg++)
--- a/sys/src/9/port/devpnp.c
+++ b/sys/src/9/port/devpnp.c
@@ -544,7 +544,7 @@
for(i=0; i<nelem(p->mem); i++){
if(p->mem[i].size == 0)
continue;
- w = seprint(w, ebuf, " %d:%.8llux %d", i, p->mem[i].bar, p->mem[i].size);
+ w = seprint(w, ebuf, " %d:%.8llux %d", i, (uvlong)p->mem[i].bar, p->mem[i].size);
}
*w++ = '\n';
*w = '\0';
--- a/sys/src/9/port/devusb.c
+++ b/sys/src/9/port/devusb.c
@@ -717,7 +717,7 @@
* the console.
*/
dprint("#u/usb/ep%d.0: %s: port 0x%lluX irq %d\n",
- epnb, hcitypes[cardno].type, hp->port, hp->irq);
+ epnb, hcitypes[cardno].type, (uvlong)hp->port, hp->irq);
epnb++;
return hp;
}