From: Mikhail Bratchikov Date: Tue, 5 Apr 2022 11:34:49 +0000 (+0300) Subject: Fix lspci: Power Management Control/Status PCI to PCI Bridge Support Extensions X-Git-Tag: v3.8.0~16 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6da04fbb6f5803973a081b0b1ea2858ed52bffbd;p=pciutils.git Fix lspci: Power Management Control/Status PCI to PCI Bridge Support Extensions --- diff --git a/ls-caps.c b/ls-caps.c index 0b6c97b..3e19cab 100644 --- a/ls-caps.c +++ b/ls-caps.c @@ -44,8 +44,8 @@ cap_pm(struct device *d, int where, int cap) b = get_conf_byte(d, where + PCI_PM_PPB_EXTENSIONS); if (b) printf("\t\tBridge: PM%c B3%c\n", - FLAG(t, PCI_PM_BPCC_ENABLE), - FLAG(~t, PCI_PM_PPB_B2_B3)); + FLAG(b, PCI_PM_BPCC_ENABLE), + FLAG(~b, PCI_PM_PPB_B2_B3)); } static void