From e5c20561f711ca926b3531e3c15bf23ef247bd3e Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 24 Oct 2024 10:16:27 -0300 Subject: [PATCH] pcireg: Flush stdout before loading PCI ID database --- pcireg/pcireg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcireg/pcireg.c b/pcireg/pcireg.c index c442bcd..f70820e 100644 --- a/pcireg/pcireg.c +++ b/pcireg/pcireg.c @@ -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); @@ -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. */