Browse Source

procfs: fix BAR5 typo

K. Lange 2 years ago
parent
commit
ed6c60d51f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      modules/debug_sh.c
  2. 1 1
      modules/procfs.c

+ 1 - 1
modules/debug_sh.c

@@ -252,7 +252,7 @@ static void scan_hit_list(uint32_t device, uint16_t vendorid, uint16_t deviceid,
 	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));
+	fprintf(tty, " BAR5: 0x%8x\n", pci_read_field(device, PCI_BAR5, 4));
 
 	fprintf(tty, " IRQ Line: %d", pci_read_field(device, 0x3C, 1));
 	fprintf(tty, " IRQ Pin: %d", pci_read_field(device, 0x3D, 1));

+ 1 - 1
modules/procfs.c

@@ -655,7 +655,7 @@ static void scan_hit_list(uint32_t device, uint16_t vendorid, uint16_t deviceid,
 	b->offset += sprintf(b->buffer + b->offset, " BAR2: 0x%8x", pci_read_field(device, PCI_BAR2, 4));
 	b->offset += sprintf(b->buffer + b->offset, " BAR3: 0x%8x", pci_read_field(device, PCI_BAR3, 4));
 	b->offset += sprintf(b->buffer + b->offset, " BAR4: 0x%8x", pci_read_field(device, PCI_BAR4, 4));
-	b->offset += sprintf(b->buffer + b->offset, " BAR6: 0x%8x\n", pci_read_field(device, PCI_BAR5, 4));
+	b->offset += sprintf(b->buffer + b->offset, " BAR5: 0x%8x\n", pci_read_field(device, PCI_BAR5, 4));
 
 	b->offset += sprintf(b->buffer + b->offset, " IRQ Line: %d", pci_read_field(device, 0x3C, 1));
 	b->offset += sprintf(b->buffer + b->offset, " IRQ Pin: %d", pci_read_field(device, 0x3D, 1));