Use the entire 64 bits of 'bar.pbi_length' when printing the bar size.
This allows bar sizes greater than or equal to 4GB to be displayed correctly.
This commit is contained in:
parent
81ba0e4f37
commit
329d8f638f
@ -290,7 +290,7 @@ list_bars(int fd, struct pci_conf *p)
|
||||
}
|
||||
printf(" bar [%02x] = type %s, range %2d, base %#jx, ",
|
||||
PCIR_BAR(i), type, range, (uintmax_t)base);
|
||||
printf("size %2d, %s\n", (int)bar.pbi_length,
|
||||
printf("size %ju, %s\n", (uintmax_t)bar.pbi_length,
|
||||
bar.pbi_enabled ? "enabled" : "disabled");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user