PEL: Adding a few PELs
This commit adds some new PELs [1].
[1]: https://gerrit.openbmc.org/c/openbmc/phosphor-logging/+/73483
Change-Id: Ie2b46f966b4df423e7ba76d3507772259d5a8727
Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
diff --git a/oem/ibm/requester/dbus_to_file_handler.cpp b/oem/ibm/requester/dbus_to_file_handler.cpp
index 26d3e32..30c344d 100644
--- a/oem/ibm/requester/dbus_to_file_handler.cpp
+++ b/oem/ibm/requester/dbus_to_file_handler.cpp
@@ -74,7 +74,7 @@
error(
"Failed to decode new file available response or remote terminus returned error, response code '{RC}' and completion code '{CC}'",
"RC", rc, "CC", completionCode);
- reportResourceDumpFailure();
+ reportResourceDumpFailure("DecodeNewFileResp");
}
};
rc = handler->registerRequest(
@@ -85,13 +85,16 @@
error(
"Failed to send NewFileAvailable Request to Host, response code '{RC}'",
"RC", rc);
- reportResourceDumpFailure();
+ reportResourceDumpFailure("NewFileAvailableRequest");
}
}
-void DbusToFileHandler::reportResourceDumpFailure()
+void DbusToFileHandler::reportResourceDumpFailure(const std::string_view& str)
{
- pldm::utils::reportError("xyz.openbmc_project.bmc.pldm.InternalFailure");
+ std::string s = "xyz.openbmc_project.PLDM.Error.ReportResourceDumpFail.";
+ s += str;
+
+ pldm::utils::reportError(s.c_str());
PropertyValue value{resDumpStatus};
DBusMapping dbusMapping{resDumpCurrentObjPath, resDumpProgressIntf,
@@ -281,7 +284,7 @@
"Failed to decode new file available response for vmi or remote terminus returned error, response code '{RC}' and completion code '{CC}'",
"RC", rc, "CC", completionCode);
pldm::utils::reportError(
- "xyz.openbmc_project.bmc.pldm.InternalFailure");
+ "xyz.openbmc_project.PLDM.Error.DecodeNewFileResponseFail");
}
};
rc = handler->registerRequest(
@@ -293,7 +296,7 @@
"Failed to send NewFileAvailable Request to Host for vmi, response code '{RC}'",
"RC", rc);
pldm::utils::reportError(
- "xyz.openbmc_project.bmc.pldm.InternalFailure");
+ "xyz.openbmc_project.PLDM.Error.NewFileAvailableRequestFail");
}
}