summaryrefslogtreecommitdiffstats
path: root/softoff/softoff.cpp
diff options
context:
space:
mode:
authorJoseph Reynolds <jrey@us.ibm.com>2018-05-30 11:51:28 -0500
committerJoseph Reynolds <jrey@us.ibm.com>2018-05-31 09:33:25 -0500
commit510eb9cc13a9437f9fc4965c080be8136d5e1320 (patch)
tree5608a089b8f0a12bd8f80d607e3a4e1246734a15 /softoff/softoff.cpp
parent6706c1cc30f4f98040d6628f9f15c4513eef2d21 (diff)
downloadphosphor-host-ipmid-510eb9cc13a9437f9fc4965c080be8136d5e1320.tar.gz
phosphor-host-ipmid-510eb9cc13a9437f9fc4965c080be8136d5e1320.zip
Use s.c_str() in log messages
Fixes issues with data passed to phosphor::logging::log(entry()). This is part of a series of commits that resolves openbmc 2905. Tested: static_assert only Change-Id: I9fac771f54e4acbec97ce1360c106b6e3eb4fe9d Signed-off-by: Joseph Reynolds <jrey@us.ibm.com>
Diffstat (limited to 'softoff/softoff.cpp')
-rw-r--r--softoff/softoff.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/softoff/softoff.cpp b/softoff/softoff.cpp
index f76cd4f..d76750a 100644
--- a/softoff/softoff.cpp
+++ b/softoff/softoff.cpp
@@ -86,9 +86,9 @@ void SoftPowerOff::hostControlEvent(sdbusplus::message::message& msg)
else
{
log<level::INFO>("Timer started waiting for host to shutdown",
- entry("TIMEOUT_IN_MSEC=%llu",
- duration_cast<milliseconds>(seconds
- (IPMI_HOST_SHUTDOWN_COMPLETE_TIMEOUT_SECS))));
+ entry("TIMEOUT_IN_MSEC=%llu",
+ (duration_cast<milliseconds>(seconds
+ (IPMI_HOST_SHUTDOWN_COMPLETE_TIMEOUT_SECS))).count()));
}
}
else
OpenPOWER on IntegriCloud