summaryrefslogtreecommitdiff
path: root/Libraries/LibELF/DynamicObject.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-08-08 22:45:20 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-09 21:12:54 +0200
commit0586924bbdee390cce13928a73168f41e9158c93 (patch)
tree96da61a3349364c8cfcf5de4896746033c35c1de /Libraries/LibELF/DynamicObject.cpp
parent872834320a7e1320f5fa23ce58ec9907f487b041 (diff)
downloadserenity-0586924bbdee390cce13928a73168f41e9158c93.zip
LibELF+Lagom: Work towards getting LibELF in Lagom
Mostly -Wformat fixes, some of which pointed out real (if benign) bugs.
Diffstat (limited to 'Libraries/LibELF/DynamicObject.cpp')
-rw-r--r--Libraries/LibELF/DynamicObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibELF/DynamicObject.cpp b/Libraries/LibELF/DynamicObject.cpp
index e345938b96..d12d940ac6 100644
--- a/Libraries/LibELF/DynamicObject.cpp
+++ b/Libraries/LibELF/DynamicObject.cpp
@@ -62,8 +62,8 @@ void DynamicObject::dump() const
if (m_has_soname)
builder.appendf("DT_SONAME: %s\n", soname()); // FIXME: Valdidate that this string is null terminated?
- dbgprintf("Dynamic section at address 0x%x contains %zu entries:\n", m_dynamic_address.as_ptr(), num_dynamic_sections);
- dbgprintf(builder.to_string().characters());
+ dbgprintf("Dynamic section at address %p contains %zu entries:\n", m_dynamic_address.as_ptr(), num_dynamic_sections);
+ dbgprintf("%s", builder.to_string().characters());
}
void DynamicObject::parse()