Blame SOURCES/0002-also-output-subsystem-info-for-PCI-host-bridges-611.patch

21ef37
From a7f65c0f1b5d1629c0d2b6d8310e90ec63abcd9b Mon Sep 17 00:00:00 2001
21ef37
From: Matt Jia <mjia@redhat.com>
21ef37
Date: Mon, 18 May 2015 11:08:10 +1000
21ef37
Subject: [PATCH 02/26] also output subsystem info for PCI host bridges (#611)
21ef37
21ef37
---
21ef37
 src/core/pci.cc | 2 ++
21ef37
 1 file changed, 2 insertions(+)
21ef37
21ef37
diff --git a/src/core/pci.cc b/src/core/pci.cc
21ef37
index 85a5481..d9a2cd8 100644
21ef37
--- a/src/core/pci.cc
21ef37
+++ b/src/core/pci.cc
21ef37
@@ -808,6 +808,8 @@ static hwNode *scan_pci_dev(struct pci_dev &d, hwNode & n)
21ef37
         host.setDescription(get_class_description(dclass, progif));
21ef37
         host.setVendor(get_device_description(d.vendor_id)+(enabled("output:numeric")?" ["+tohex(d.vendor_id)+"]":""));
21ef37
         host.setProduct(get_device_description(d.vendor_id, d.device_id)+(enabled("output:numeric")?" ["+tohex(d.vendor_id)+":"+tohex(d.device_id)+"]":""));
21ef37
+        host.setSubsysVendor(get_device_description(subsys_v)+(enabled("output:numeric")?" ["+tohex(subsys_v)+"]":""));
21ef37
+        host.setSubsysProduct(get_device_description(subsys_v, subsys_d)+(enabled("output:numeric")?" ["+tohex(subsys_v)+":"+tohex(subsys_d)+"]":""));
21ef37
         host.setHandle(pci_bushandle(d.bus, d.domain));
21ef37
         host.setVersion(revision);
21ef37
         addHints(host, d.vendor_id, d.device_id, subsys_v, subsys_d, dclass);
21ef37
-- 
21ef37
2.10.2
21ef37