From 18fdf97ed135babf7e8b6cbbec09b6e2c1d0a5d6 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 14 Feb 2023 13:40:06 -0300 Subject: [PATCH] pcireg: Enable command and status printing on UEFI as that works again --- pcireg/pcireg.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pcireg/pcireg.c b/pcireg/pcireg.c index 01b5d1e..2326b3e 100644 --- a/pcireg/pcireg.c +++ b/pcireg/pcireg.c @@ -856,17 +856,12 @@ dump_info(uint8_t bus, uint8_t dev, uint8_t func) /* Read command and status. */ reg_val.u32 = pci_readl(bus, dev, func, 0x04); - /* Print command and status flags... except on UEFI target, - as something somewhere in the POSIX-UEFI pipeline mangles - the pointers to all strings in our lookup arrays after - command_flags[0]. Ugh. */ -#ifndef __POSIX_UEFI__ + /* Print command and status flags. */ printf("\n\nCommand:"); info_flags_helper(reg_val.u16[0], command_flags); printf("\n Status:"); info_flags_helper(reg_val.u16[1], status_flags); printf(" DEVSEL[%s]", devsel[(reg_val.u16[1] >> 9) & 3]); -#endif /* Read revision and class ID. */ reg_val.u32 = pci_readl(bus, dev, func, 0x08);