From 14e98a0fb0ff3aeb36b3061d55d70d4b71f95d79 Mon Sep 17 00:00:00 2001 From: chenjian Date: Fri, 4 Mar 2022 11:51:30 +0800 Subject: [PATCH] fix warning (#40133) --- paddle/fluid/platform/profiler/profiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/platform/profiler/profiler.cc b/paddle/fluid/platform/profiler/profiler.cc index 35dbc96874d..46cbb3358c6 100644 --- a/paddle/fluid/platform/profiler/profiler.cc +++ b/paddle/fluid/platform/profiler/profiler.cc @@ -95,7 +95,7 @@ std::unique_ptr Profiler::Stop() { collector.ThreadNames(); for (const auto& kv : thread_names) { extrainfo.AddExtraInfo(string_format(std::string("%llu"), kv.first), - kv.second); + std::string("%s"), kv.second.c_str()); } return std::unique_ptr( new platform::ProfilerResult(std::move(tree), extrainfo)); -- GitLab