Add support to create dump in the Dump ID specific location

Change-Id: Iccfe13bdbcfe539d1a8dd2f1726be5539b383bc5
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
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 @@
 {
     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;