Skip to content

Commit 1f205ef

Browse files
authored
More fixes
1 parent 097ae2e commit 1f205ef

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ bool LLDBMemoryReader::readBytes(swift::remote::RemoteAddress address,
139139
llvm::Optional<Address> maybeAddr =
140140
resolveRemoteAddress(address.getAddressData());
141141
if (!maybeAddr) {
142-
LLDB_LOGV(log, "[MemoryReader] could not resolve address {1:x}",
142+
LLDB_LOGV(log, "[MemoryReader] could not resolve address {0:x}",
143143
address.getAddressData());
144144
return false;
145145
}
@@ -184,13 +184,13 @@ bool LLDBMemoryReader::readString(swift::remote::RemoteAddress address,
184184
std::string &dest) {
185185
Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_TYPES));
186186

187-
LLDB_LOGV(log, "[MemoryReader] asked to read string data at address {0x}",
187+
LLDB_LOGV(log, "[MemoryReader] asked to read string data at address {0:x}",
188188
address.getAddressData());
189189

190190
llvm::Optional<Address> maybeAddr =
191191
resolveRemoteAddress(address.getAddressData());
192192
if (!maybeAddr) {
193-
LLDB_LOGV(log, "[MemoryReader] could not resolve address {1:x}",
193+
LLDB_LOGV(log, "[MemoryReader] could not resolve address {0:x}",
194194
address.getAddressData());
195195
return false;
196196
}
@@ -302,7 +302,7 @@ 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 {:x} is larger than the upper bound "
305+
"[MemoryReader] Address {0:x} is larger than the upper bound "
306306
"address of the mapped in modules",
307307
address);
308308
return {};
@@ -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 {:x} into "
323-
"file address {:x}",
322+
"[MemoryReader] Successfully resolved mapped address {0:x} into "
323+
"file address {1:x}",
324324
address, file_address);
325325
auto *object_file = module->GetObjectFile();
326326
if (!object_file)
@@ -330,14 +330,14 @@ LLDBMemoryReader::resolveRemoteAddress(uint64_t address) const {
330330
if (!resolved.IsValid()) {
331331
LLDB_LOG(log,
332332
"[MemoryReader] Could not make a real address out of file address "
333-
"{:x} and object file {}",
333+
"{0: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 {:x} into "
340-
"file address {:x}",
339+
"[MemoryReader] Successfully resolved mapped address {0:x} into "
340+
"file address {1:x}",
341341
address, resolved.GetFileAddress());
342342
return resolved;
343343
}

0 commit comments

Comments
 (0)