[Lldb-commits] [lldb] [lldb][Darwin] add 0x prefix on a hex value log message (PR #195223)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 30 23:14:54 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Jason Molenda (jasonmolenda)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/195223.diff


1 Files Affected:

- (modified) lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp (+2-2) 


``````````diff
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
index 894ee16935e7e..6618b3a5d2b4b 100644
--- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
+++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
@@ -317,8 +317,8 @@ bool DynamicLoaderDarwin::UpdateImageLoadAddress(Module *module,
 
               if (info.segments[i].vmsize != section_sp->GetByteSize())
                 LLDB_LOGF(log,
-                          "%s: In-memory segment size for %s is %" PRIx64
-                          " but file segment size is %" PRIx64,
+                          "%s: In-memory segment size for %s is 0x%" PRIx64
+                          " but file segment size is 0x%" PRIx64,
                           info.file_spec.GetFilename().AsCString(""),
                           info.segments[i].name.AsCString(""),
                           info.segments[i].vmsize, section_sp->GetByteSize());

``````````

</details>


https://github.com/llvm/llvm-project/pull/195223


More information about the lldb-commits mailing list