[Lldb-commits] [PATCH] D151599: [lldb][NFCI] Remove use of ConstString from StructuredDataDarwinLog static functions
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue May 30 10:49:29 PDT 2023
JDevlieghere accepted this revision.
JDevlieghere added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp:1496-1500
LLDB_LOGF(log,
"StructuredDataDarwinLog::%s() warning: no plugin for "
"feature %s in process uid %u",
- __FUNCTION__, GetDarwinLogTypeName().AsCString(),
+ __FUNCTION__, GetDarwinLogTypeName().str().c_str(),
process_sp->GetUniqueID());
----------------
You could get rid of the `.str().c_str()` if you used `LLDB_LOG`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151599/new/
https://reviews.llvm.org/D151599
More information about the lldb-commits
mailing list