Update createDump to accept additional parameters
Updating create dump implementation to match the change
in the interface to accept the additional parameters.
Testing:
Created BMC dump
Created system dump
Dbus changes associated with this:
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/37355
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I1402a9c4c8e0e5c6277055d835f7d024673831d8
diff --git a/dump_manager_bmc.cpp b/dump_manager_bmc.cpp
index 0236e46..aef7a3e 100644
--- a/dump_manager_bmc.cpp
+++ b/dump_manager_bmc.cpp
@@ -35,8 +35,13 @@
} // namespace internal
-sdbusplus::message::object_path Manager::createDump()
+sdbusplus::message::object_path
+ Manager::createDump(std::map<std::string, std::string> params)
{
+ if (!params.empty())
+ {
+ log<level::WARNING>("BMC dump accepts no additional parameters");
+ }
std::vector<std::string> paths;
auto id = captureDump(Type::UserRequested, paths);