Skip to content

Commit

Permalink
fix warning (#40133)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyfly authored Mar 4, 2022
1 parent a694799 commit 14e98a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/platform/profiler/profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ std::unique_ptr<ProfilerResult> 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<ProfilerResult>(
new platform::ProfilerResult(std::move(tree), extrainfo));
Expand Down

0 comments on commit 14e98a0

Please sign in to comment.