diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-11-26 20:55:58 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-11-26 20:55:58 +0000 |
commit | 2a531d444cf53419e8d4af716b9937d14ca5b08c (patch) | |
tree | 3b394ebf611f0c7b07b8e520c6536017dac38c76 /sys/src/cmd/aux/vga/pci.c | |
parent | 20ea113790c22e5fc8dd0051baa359e4fa083425 (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.c | 4 |
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) |