diff options
Diffstat (limited to 'dump_manager.cpp')
-rw-r--r-- | dump_manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dump_manager.cpp b/dump_manager.cpp index 3d8bdc2..d5150d3 100644 --- a/dump_manager.cpp +++ b/dump_manager.cpp @@ -42,11 +42,12 @@ uint32_t Manager::captureDump( { pid_t pid = fork(); - // TODO openbmc/openbmc#1795 - // Add Dump location info. if (pid == 0) { - execl("/usr/bin/ffdc", "ffdc", nullptr); + fs::path dumpPath(BMC_DUMP_PATH); + + dumpPath /= std::to_string(lastEntryId + 1); + execl("/usr/bin/ffdc", "ffdc", "-d", dumpPath.c_str(), nullptr); //ffdc script execution is failed. auto error = errno; |