Add path of problem device to trace
Needed this to debug a problem. Makes this trace a lot more useful.
Tested: This now printed the devices causing the problems.
Change-Id: I0cb1529cfa9fec4334730cab1cf2010a00218b6e
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp
index 4068bac..6dc7a75 100644
--- a/redfish-core/lib/pcie.hpp
+++ b/redfish-core/lib/pcie.hpp
@@ -243,8 +243,8 @@
if (endpoints.size() > 1)
{
BMCWEB_LOG_ERROR(
- "PCIeDevice is associated with more than one PCIeSlot: {}",
- endpoints.size());
+ "PCIeDevice {} is associated with more than one PCIeSlot: {}",
+ pcieDevicePath, endpoints.size());
messages::internalError(asyncResp->res);
return;
}