Skip to content

Commit

Permalink
pcireg: Flush stdout before loading PCI ID database
Browse files Browse the repository at this point in the history
  • Loading branch information
richardg867 committed Oct 24, 2024
1 parent 2042d3e commit e5c2056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pcireg/pcireg.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ pciids_open_database(void **ptr, char id)
/* No action is required if the database is already loaded. */
if (*ptr)
return 0;
fflush(stdout);

/* Open archive, and stop if the open failed. */
f = fopen("PCIIDS.LHA", "r" FOPEN_BINARY);
Expand Down Expand Up @@ -1292,7 +1293,7 @@ dump_steering_table(uint8_t mode)
/* Determine slot type by location and class. */
if ((entry->dev == 1) && (dev_class == 0x0604)) {
printf("AGPBRIDGE, ");
} else if (dev_class == 0x0601) {
} else if (dev_class == 0x0601) { /* ISA bridge */
printf("SOUTHBRIDGE,");
} else if (entry->slot == 0) {
/* Very likely to be an onboard device. */
Expand Down

0 comments on commit e5c2056

Please sign in to comment.