summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/vga/pci.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-11-26 20:55:58 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-11-26 20:55:58 +0000
commit2a531d444cf53419e8d4af716b9937d14ca5b08c (patch)
tree3b394ebf611f0c7b07b8e520c6536017dac38c76 /sys/src/cmd/aux/vga/pci.c
parent20ea113790c22e5fc8dd0051baa359e4fa083425 (diff)
aux/vga: use vlong for pci bar size
Diffstat (limited to 'sys/src/cmd/aux/vga/pci.c')
-rw-r--r--sys/src/cmd/aux/vga/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/aux/vga/pci.c b/sys/src/cmd/aux/vga/pci.c
index 2b4c57e0c..25194d570 100644
--- a/sys/src/cmd/aux/vga/pci.c
+++ b/sys/src/cmd/aux/vga/pci.c
@@ -71,8 +71,8 @@ pcicfginit(void)
if(j < 0 || j >= nelem(p->mem))
break;
p->mem[j].bar = strtoull(s+1, &s, 16);
- p->mem[j].size = strtoul(s+1, &s, 10);
- trace("\tmem[%d] = %llux %d\n", j, p->mem[j].bar, p->mem[j].size);
+ p->mem[j].size = strtoll(s+1, &s, 10);
+ trace("\tmem[%d] = %llux %lld\n", j, p->mem[j].bar, p->mem[j].size);
}
if(pcilist != nil)