[Lldb-commits] [lldb] f1bb534 - [lldb] Simplify logging in Process settings (NFC)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 16 14:46:51 PDT 2023
Author: Jonas Devlieghere
Date: 2023-06-16T14:46:46-07:00
New Revision: f1bb534b0ab53fab501fa92c4ef0f5eaf75c6bd6
URL: https://github.com/llvm/llvm-project/commit/f1bb534b0ab53fab501fa92c4ef0f5eaf75c6bd6
DIFF: https://github.com/llvm/llvm-project/commit/f1bb534b0ab53fab501fa92c4ef0f5eaf75c6bd6.diff
LOG: [lldb] Simplify logging in Process settings (NFC)
Added:
Modified:
lldb/source/Target/Process.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 7ad62976d968d..8542ffe91b56c 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -5689,30 +5689,28 @@ lldb::addr_t Process::GetHighmemDataAddressMask() {
}
void Process::SetCodeAddressMask(lldb::addr_t code_address_mask) {
- Log *log = GetLog(LLDBLog::Process);
- LLDB_LOGF(log, "Setting Process code address mask to 0x%" PRIx64,
- code_address_mask);
+ LLDB_LOG(GetLog(LLDBLog::Process),
+ "Setting Process code address mask to {0:x}", code_address_mask);
m_code_address_mask = code_address_mask;
}
void Process::SetDataAddressMask(lldb::addr_t data_address_mask) {
- Log *log = GetLog(LLDBLog::Process);
- LLDB_LOGF(log, "Setting Process data address mask to 0x%" PRIx64,
- data_address_mask);
+ LLDB_LOG(GetLog(LLDBLog::Process),
+ "Setting Process data address mask to {0:x}", data_address_mask);
m_data_address_mask = data_address_mask;
}
void Process::SetHighmemCodeAddressMask(lldb::addr_t code_address_mask) {
- Log *log = GetLog(LLDBLog::Process);
- LLDB_LOGF(log, "Setting Process highmem code address mask to 0x%" PRIx64,
- code_address_mask);
+ LLDB_LOG(GetLog(LLDBLog::Process),
+ "Setting Process highmem code address mask to {0:x}",
+ code_address_mask);
m_highmem_code_address_mask = code_address_mask;
}
void Process::SetHighmemDataAddressMask(lldb::addr_t data_address_mask) {
- Log *log = GetLog(LLDBLog::Process);
- LLDB_LOGF(log, "Setting Process highmem data address mask to 0x%" PRIx64,
- data_address_mask);
+ LLDB_LOG(GetLog(LLDBLog::Process),
+ "Setting Process highmem data address mask to {0:x}",
+ data_address_mask);
m_highmem_data_address_mask = data_address_mask;
}
More information about the lldb-commits
mailing list