[bus][pci] make the pci bus dump on bootup use a little less horizontal space
Should fit better on an 80 column display
This commit is contained in:
@@ -324,8 +324,13 @@ status_t pci_bus_mgr_allocate_irq(const pci_location_t loc, uint *irqbase) {
|
||||
}
|
||||
|
||||
void pci_dump_bar(const pci_bar_t *bar, int index) {
|
||||
printf("BAR %d: addr %-#16llx size %-#16zx io %d 64bit %d prefetch %d\n",
|
||||
index, bar->addr, bar->size, bar->io, bar->size_64, bar->prefetchable);
|
||||
if (bar->addr >= UINT32_MAX || bar->size >= UINT32_MAX) {
|
||||
printf("BAR %d: addr %-#16llx size %-#16zx io %d 64b %d pref %d\n",
|
||||
index, bar->addr, bar->size, bar->io, bar->size_64, bar->prefetchable);
|
||||
} else {
|
||||
printf("BAR %d: addr %-#8llx size %-#8zx io %d 64b %d pref %d\n",
|
||||
index, bar->addr, bar->size, bar->io, bar->size_64, bar->prefetchable);
|
||||
}
|
||||
}
|
||||
|
||||
void pci_dump_bars(pci_bar_t bar[6], size_t count) {
|
||||
|
||||
Reference in New Issue
Block a user