ref: 75b9d265c21d88dd765a29ea26f33247a33bfbbf
parent: d7b8111fa6219894f3c5923191855226b1359c14
author: 9ferno <gophone2015@gmail.com>
date: Mon Aug 23 05:30:21 EDT 2021
fixed compilation warnings
--- a/os/pc/ethervirtio.c
+++ b/os/pc/ethervirtio.c
@@ -449,11 +449,11 @@
p = smalloc(READSTR);
- l = snprint(p, READSTR, "devfeat %32.32ub\n", ctlr->feat);
- l += snprint(p+l, READSTR-l, "drvfeat %32.32lub\n", inl(ctlr->port+Qdrvfeat));
- l += snprint(p+l, READSTR-l, "devstatus %8.8b\n", inb(ctlr->port+Qstatus));
+ l = snprint(p, READSTR, "devfeat %32.32ud\n", ctlr->feat);
+ l += snprint(p+l, READSTR-l, "drvfeat %32.32lud\n", inl(ctlr->port+Qdrvfeat));
+ l += snprint(p+l, READSTR-l, "devstatus %8.8d\n", inb(ctlr->port+Qstatus));
if(ctlr->feat & Fstatus)
- l += snprint(p+l, READSTR-l, "netstatus %8.8b\n", inb(ctlr->port+Qnetstatus));
+ l += snprint(p+l, READSTR-l, "netstatus %8.8d\n", inb(ctlr->port+Qnetstatus));
for(i = 0; i < ctlr->nqueue; i++){
q = &ctlr->queue[i];