From 510eb9cc13a9437f9fc4965c080be8136d5e1320 Mon Sep 17 00:00:00 2001 From: Joseph Reynolds Date: Wed, 30 May 2018 11:51:28 -0500 Subject: 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 --- host-interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host-interface.cpp') diff --git a/host-interface.cpp b/host-interface.cpp index 19ca291..8663929 100644 --- a/host-interface.cpp +++ b/host-interface.cpp @@ -57,7 +57,7 @@ void Host::execute(Base::Host::Command command) log("Pushing cmd on to queue", entry("CONTROL_HOST_CMD=%s", - convertForMessage(command))); + convertForMessage(command).c_str())); auto cmd = std::make_tuple(ipmiCommand.at(command), std::bind(&Host::commandStatusHandler, -- cgit v1.2.1