secure-boot: optional param for data on error create

For the secure-boot function, it will be valuable to store the values
which were read to the error log. This will make it easy to determine
which value(s) are incorrect and causing the error log.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Icfabae558fe4d128bae55e114191b15d6c2d0ee2
diff --git a/utils.cpp b/utils.cpp
index d925d4c..18afd90 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -132,13 +132,13 @@
 
 void createError(
     sdbusplus::bus::bus& bus, const std::string& errorMsg,
-    sdbusplus::xyz::openbmc_project::Logging::server::Entry::Level errLevel)
+    sdbusplus::xyz::openbmc_project::Logging::server::Entry::Level errLevel,
+    std::map<std::string, std::string> additionalData)
 {
 
     try
     {
-        // Create interface requires something for additionalData
-        std::map<std::string, std::string> additionalData;
+        // Always add the _PID on for some extra logging debug
         additionalData.emplace("_PID", std::to_string(getpid()));
 
         auto method = bus.new_method_call(