Skip to content

Commit 097ae2e

Browse files
authored
More format string fixes
1 parent 8b8f21d commit 097ae2e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/LLDBMemoryReader.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ LLDBMemoryReader::resolveRemoteAddress(uint64_t address) const {
302302
// If the address is larger than anything we have mapped the address is out
303303
if (pair_iterator == m_range_module_map.end()) {
304304
LLDB_LOG(log,
305-
"[MemoryReader] Address {1:x} is larger than the upper bound "
306-
"address of the mapped in modules",
307-
address);
305+
"[MemoryReader] Address {:x} is larger than the upper bound "
306+
"address of the mapped in modules",
307+
address);
308308
return {};
309309
}
310310

@@ -319,8 +319,8 @@ LLDBMemoryReader::resolveRemoteAddress(uint64_t address) const {
319319
file_address = address - std::prev(pair_iterator)->first;
320320

321321
LLDB_LOGV(log,
322-
"[MemoryReader] Successfully resolved mapped address {1:x} "
323-
"into file address {1:x}",
322+
"[MemoryReader] Successfully resolved mapped address {:x} into "
323+
"file address {:x}",
324324
address, file_address);
325325
auto *object_file = module->GetObjectFile();
326326
if (!object_file)
@@ -329,16 +329,16 @@ LLDBMemoryReader::resolveRemoteAddress(uint64_t address) const {
329329
Address resolved(file_address, object_file->GetSectionList());
330330
if (!resolved.IsValid()) {
331331
LLDB_LOG(log,
332-
"[MemoryReader] Could not make a real address out of file "
333-
"address {1:x} and object file {}",
332+
"[MemoryReader] Could not make a real address out of file address "
333+
"{:x} and object file {}",
334334
file_address, object_file->GetFileSpec().GetFilename());
335335
return {};
336336
}
337337

338338
LLDB_LOGV(log,
339-
"[MemoryReader] Successfully resolved mapped address {1:x} "
340-
"into file address {1:x}",
341-
address, resolved);
339+
"[MemoryReader] Successfully resolved mapped address {:x} into "
340+
"file address {:x}",
341+
address, resolved.GetFileAddress());
342342
return resolved;
343343
}
344344

0 commit comments

Comments
 (0)