Print the failing filename in the journal msg

Instead of hiding the name of the file that had the failed access in the
journal metadata, put it in the journal message so debug is easier.

Uses the fmt library.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ice3958ffb576adf0b06ef7eab7d2fc03aa526819
diff --git a/targets.hpp b/targets.hpp
index ffdb476..c1a2feb 100644
--- a/targets.hpp
+++ b/targets.hpp
@@ -5,6 +5,8 @@
 #include "fan_speed.hpp"
 #include "hwmonio.hpp"
 
+#include <fmt/format.h>
+
 #include <filesystem>
 #include <memory>
 #include <phosphor-logging/elog-errors.hpp>
@@ -153,8 +155,8 @@
                     metadata::CALLOUT_DEVICE_PATH(devPath.c_str()));
 
                 log<level::INFO>(
-                    "Logging failing sysfs file",
-                    phosphor::logging::entry("FILE=%s", sysfsFullPath.c_str()));
+                    fmt::format("Failing sysfs file: {}", sysfsFullPath)
+                        .c_str());
             }
 
             static constexpr bool deferSignals = true;