From f9c6b5134e5e2c5ca977f422119b1255412acd53 Mon Sep 17 00:00:00 2001 From: Abner Chang Date: Wed, 11 Jan 2023 21:14:17 -0800 Subject: MdeModulePkg/Pci: Display more information of PCIe devices In V4: Update the copyright to 2023. In V3: Add AMD copyright. In V2: Remove the signed-off-by: Abner Chang Display PCIe Vendor ID and Device ID in DEBUG message. Signed-off-by: Jiangang He Cc: Hao A Wu Cc: Ray Ni Cc: Garrett Kirkendall Cc: Abner Chang Reviewed-by: Ray Ni Acked-by: Michael D Kinney --- MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index 8eca859695..6594b8eae8 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c @@ -3,6 +3,7 @@ Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
+Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -227,13 +228,15 @@ PciSearchDevice ( DEBUG (( DEBUG_INFO, - "PciBus: Discovered %s @ [%02x|%02x|%02x]\n", + "PciBus: Discovered %s @ [%02x|%02x|%02x] [VID = 0x%x, DID = 0x%0x]\n", IS_PCI_BRIDGE (Pci) ? L"PPB" : IS_CARDBUS_BRIDGE (Pci) ? L"P2C" : L"PCI", Bus, Device, - Func + Func, + Pci->Hdr.VendorId, + Pci->Hdr.DeviceId )); if (!IS_PCI_BRIDGE (Pci)) { -- cgit v1.2.3