summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-05-15 07:54:44 -0700
committerPatrick Venture <venture@google.com>2019-05-15 07:54:44 -0700
commit46e69491e1831addb866876e2e88cd212134f4ba (patch)
tree46667f22ef554ea4226239e7a2759d45a4b68bd3 /tools
parent73528388e556123e38fa8c00cd126696e4ec53cb (diff)
downloadphosphor-ipmi-flash-46e69491e1831addb866876e2e88cd212134f4ba.tar.gz
phosphor-ipmi-flash-46e69491e1831addb866876e2e88cd212134f4ba.zip
bugfix: tools: use pci member
Tool worked by declaring its own pci utility object instead of using the one provided. There are not yet unit-tests associated with the P2aDataHandler that would have caught this. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I62cdeb17d298f1db51d8f513c59bfd299fc2884a
Diffstat (limited to 'tools')
-rw-r--r--tools/p2a.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/p2a.cpp b/tools/p2a.cpp
index dd05ccd..2a48285 100644
--- a/tools/p2a.cpp
+++ b/tools/p2a.cpp
@@ -30,7 +30,6 @@ bool P2aDataHandler::sendContents(const std::string& input,
std::uint16_t session)
{
PciDevice result;
- PciUtilImpl pci;
PciFilter filter;
bool found = false;
pciaddr_t bar1;
@@ -39,7 +38,7 @@ bool P2aDataHandler::sendContents(const std::string& input,
filter.did = aspeedDeviceId;
/* Find the ASPEED PCI device entry we want. */
- auto output = pci.getPciDevices(filter);
+ auto output = pci->getPciDevices(filter);
for (const auto& d : output)
{
std::fprintf(stderr, "[0x%x 0x%x] ", d.vid, d.did);
OpenPOWER on IntegriCloud