crit-service: add failed unit to error log

Whether it's a systemd target or a service, they are both units. Log
that unit name to both error logs so it's easy to tell what failed.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I32fc45ece1e9ca9b986ead3c9675cf71857b7fcd
diff --git a/systemd_target_signal.hpp b/systemd_target_signal.hpp
index 8674ca5..c46425a 100644
--- a/systemd_target_signal.hpp
+++ b/systemd_target_signal.hpp
@@ -76,8 +76,10 @@
      *
      * @param[in]  error      - The error to log
      * @param[in]  result     - The failure code from the systemd unit
+     * @param[in]  unit       - The name of the failed unit
      */
-    void logError(const std::string& error, const std::string& result);
+    void logError(const std::string& error, const std::string& result,
+                  const std::string& unit);
 
     /** @brief Check if systemd state change is one to monitor
      *