Use s.c_str() in log messages
Partly resolves openbmc/openbmc 2905
Tested: static_assert only
Change-Id: I0cabc8d84c763af924d067880417c9a11bcfde58
Signed-off-by: Joseph Reynolds <jrey@us.ibm.com>
diff --git a/presence/fallback.cpp b/presence/fallback.cpp
index 7550c34..f6a0116 100644
--- a/presence/fallback.cpp
+++ b/presence/fallback.cpp
@@ -53,7 +53,7 @@
phosphor::logging::log<phosphor::logging::level::INFO>(
"Using backup presence sensor.",
phosphor::logging::entry(
- "FAN=%s", std::get<1>(fan)));
+ "FAN=%s", std::get<1>(fan).c_str()));
activeSensor = it;
}
}
@@ -81,7 +81,7 @@
phosphor::logging::log<phosphor::logging::level::INFO>(
"Using backup presence sensor.",
phosphor::logging::entry(
- "FAN=%s", std::get<1>(fan)));
+ "FAN=%s", std::get<1>(fan).c_str()));
}
// Callout the broken sensors.