control: Trace which fan gets target locked

The override_fan_target action is used to lock a fan to a target in
certain cases.  It was already tracing when this was occurring, but it
didn't say which fan it was happening to.  Add that information.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I074ddcbab32ff5606b7a1c7b3ceb03076a49ce30
diff --git a/control/json/actions/override_fan_target.cpp b/control/json/actions/override_fan_target.cpp
index e8ce823..c5e15ad 100644
--- a/control/json/actions/override_fan_target.cpp
+++ b/control/json/actions/override_fan_target.cpp
@@ -21,6 +21,7 @@
 #include "group.hpp"
 
 #include <fmt/format.h>
+#include <fmt/ranges.h>
 
 #include <nlohmann/json.hpp>
 
@@ -82,8 +83,8 @@
 {
     if (!_locked)
     {
-        record("Adding fan target lock of " + std::to_string(_target) +
-               " on zone " + zone.getName());
+        record(fmt::format("Adding fan target lock of {} on fans {} zone {}",
+                           _target, _fans, zone.getName()));
 
         for (auto& fan : _fans)
         {
@@ -96,8 +97,8 @@
 
 void OverrideFanTarget::unlockFans(Zone& zone)
 {
-    record("Un-locking fan target " + std::to_string(_target) + " on zone " +
-           zone.getName());
+    record(fmt::format("Un-locking fan target {} on fans {} zone {}", _target,
+                       _fans, zone.getName()));
 
     // unlock all fans in this instance
     for (auto& fan : _fans)