devpnp, devether, devusb: cast ISAConf.port to uvlong (for 32-bit implementations)
The ISAConf.port might still be 32-bit on some archs.
This commit is contained in:
parent
6ae50ce330
commit
b6becc7a64
3 changed files with 3 additions and 3 deletions
|
@ -416,7 +416,7 @@ Nope:
|
||||||
ether->type = cards[cardno].type;
|
ether->type = cards[cardno].type;
|
||||||
|
|
||||||
print("#l%d: %s: %dMbps port 0x%lluX irq %d ea %E\n",
|
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 */
|
/* compute log10(ether->mbps) into lg */
|
||||||
for(lg = 0, mb = ether->mbps; mb >= 10; lg++)
|
for(lg = 0, mb = ether->mbps; mb >= 10; lg++)
|
||||||
|
|
|
@ -544,7 +544,7 @@ pnpread(Chan *c, void *va, long n, vlong offset)
|
||||||
for(i=0; i<nelem(p->mem); i++){
|
for(i=0; i<nelem(p->mem); i++){
|
||||||
if(p->mem[i].size == 0)
|
if(p->mem[i].size == 0)
|
||||||
continue;
|
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++ = '\n';
|
||||||
*w = '\0';
|
*w = '\0';
|
||||||
|
|
|
@ -717,7 +717,7 @@ hciprobe(int cardno, int ctlrno)
|
||||||
* the console.
|
* the console.
|
||||||
*/
|
*/
|
||||||
dprint("#u/usb/ep%d.0: %s: port 0x%lluX irq %d\n",
|
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++;
|
epnb++;
|
||||||
return hp;
|
return hp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue