Skip to content

Commit b82c629

Browse files
committed
Fix log format strings
1 parent dfa3570 commit b82c629

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
394394
if (log) {
395395
std::string cmdstr;
396396
args.GetCommandString(cmdstr);
397-
log->Printf("GetXcodeSDK() running shell cmd '%s'", cmdstr.c_str());
397+
LLDB_LOG(log, "GetXcodeSDK() running shell cmd '{0}'", cmdstr);
398398
}
399399

400400
int status = 0;
@@ -410,13 +410,13 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
410410
// Check that xcrun returned something useful.
411411
if (error.Fail()) {
412412
// Catastrophic error.
413-
LLDB_LOG(log, "xcrun failed to execute: %s", error.AsCString());
413+
LLDB_LOG(log, "xcrun failed to execute: {0}", error);
414414
return error.ToError();
415415
}
416416
if (status != 0) {
417417
// xcrun didn't find a matching SDK. Not an error, we'll try
418418
// different spellings.
419-
LLDB_LOG(log, "xcrun returned exit code %d", status);
419+
LLDB_LOG(log, "xcrun returned exit code {0}", status);
420420
return "";
421421
}
422422
if (output_str.empty()) {

0 commit comments

Comments
 (0)