summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Reynolds <jrey@us.ibm.com>2018-05-10 15:54:41 -0500
committerJoseph Reynolds <jrey@us.ibm.com>2018-05-30 16:54:13 -0500
commitb0de1d6a88cee65cfc1041d26e04ac443ca1af4a (patch)
treef84e3e04ec2f086fbc996dfcc9d20851d00018c7
parent220985a54e71e9a65dd4f92a9a5fa90c3ab94fe8 (diff)
downloadphosphor-fan-presence-b0de1d6a88cee65cfc1041d26e04ac443ca1af4a.zip
phosphor-fan-presence-b0de1d6a88cee65cfc1041d26e04ac443ca1af4a.tar.gz
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>
-rw-r--r--presence/fallback.cpp4
1 files changed, 2 insertions, 2 deletions
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 @@ void Fallback::stateChanged(bool present, PresenceSensor& sensor)
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 @@ void Fallback::monitor()
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.
OpenPOWER on IntegriCloud