summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibELF
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-21 23:36:53 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-21 23:49:03 +0200
commit0005fa0e2ba356434f41ff1673865142526387fd (patch)
tree8773fbd8d4ea0f5a0a8ec4af3ee5dc149f100d8e /Userland/Libraries/LibELF
parent7254d4c4b8ec5e4a7db3dc48d134b6ee2bcaef6d (diff)
downloadserenity-0005fa0e2ba356434f41ff1673865142526387fd.zip
LibELF: Convert String::format() => String::formatted()
Diffstat (limited to 'Userland/Libraries/LibELF')
-rw-r--r--Userland/Libraries/LibELF/Image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibELF/Image.cpp b/Userland/Libraries/LibELF/Image.cpp
index 99bd8a4dc0..9e53fe8aef 100644
--- a/Userland/Libraries/LibELF/Image.cpp
+++ b/Userland/Libraries/LibELF/Image.cpp
@@ -398,7 +398,7 @@ String Image::symbolicate(u32 address, u32* out_offset) const
*out_offset = address - symbol.address;
return demangled_name;
}
- return String::format("%s +0x%x", demangled_name.characters(), address - symbol.address);
+ return String::formatted("{} +{:#x}", demangled_name, address - symbol.address);
}
}
if (out_offset)