Reduce size of pci command output

This commit is contained in:
Kevin Lange 2017-01-21 00:03:16 +09:00
parent e6de18a412
commit 143ee63042

View File

@ -277,11 +277,11 @@ static void scan_hit_list(uint32_t device, uint16_t vendorid, uint16_t deviceid,
pci_vendor_lookup(vendorid),
pci_device_lookup(vendorid,deviceid));
fprintf(tty, " BAR0: 0x%8x\n", pci_read_field(device, PCI_BAR0, 4));
fprintf(tty, " BAR1: 0x%8x\n", pci_read_field(device, PCI_BAR1, 4));
fprintf(tty, " BAR2: 0x%8x\n", pci_read_field(device, PCI_BAR2, 4));
fprintf(tty, " BAR3: 0x%8x\n", pci_read_field(device, PCI_BAR3, 4));
fprintf(tty, " BAR4: 0x%8x\n", pci_read_field(device, PCI_BAR4, 4));
fprintf(tty, " BAR0: 0x%8x", pci_read_field(device, PCI_BAR0, 4));
fprintf(tty, " BAR1: 0x%8x", pci_read_field(device, PCI_BAR1, 4));
fprintf(tty, " BAR2: 0x%8x", pci_read_field(device, PCI_BAR2, 4));
fprintf(tty, " BAR3: 0x%8x", pci_read_field(device, PCI_BAR3, 4));
fprintf(tty, " BAR4: 0x%8x", pci_read_field(device, PCI_BAR4, 4));
fprintf(tty, " BAR6: 0x%8x\n", pci_read_field(device, PCI_BAR5, 4));
}