diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:36:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:49:03 +0200 |
commit | 0005fa0e2ba356434f41ff1673865142526387fd (patch) | |
tree | 8773fbd8d4ea0f5a0a8ec4af3ee5dc149f100d8e /Userland/Libraries | |
parent | 7254d4c4b8ec5e4a7db3dc48d134b6ee2bcaef6d (diff) | |
download | serenity-0005fa0e2ba356434f41ff1673865142526387fd.zip |
LibELF: Convert String::format() => String::formatted()
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibELF/Image.cpp | 2 |
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) |