dreport: Add summary log
Change-Id: Ida6dc81be4103a0d37a0701a7c0d55b241e6fc1a
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/tools/dreport b/tools/dreport
index f04100f..21eba10 100755
--- a/tools/dreport
+++ b/tools/dreport
@@ -64,8 +64,15 @@
declare -x dreport_log=""
declare -x summary_log=""
-# PACKAGE VERSION
-PACKAGE_VERSION="0.0.1"
+# @brief Initial version of the summary log
+init_summary()
+{
+ log_summary "Name: $name.tar.xz"
+ log_summary "Epochtime: $EPOCHTIME"
+ log_summary "ID: $dump_id"
+ log_summary "Type: $dump_type"
+ log_summary "Optional file: $optional_file"
+}
# @brief Check the validity of user inputs and initialize global
# variables. Create directory for temporary data collection
@@ -208,6 +215,9 @@
exit;
fi
+ #Initilize the summary log
+ init_summary
+
#TODO Add Dump report generating script.
package #package the dump