1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibELF: Convert String::format() to String::formatted()

This commit is contained in:
Andreas Kling 2021-01-25 12:08:57 +01:00
parent eb354b7ce8
commit a5de46684b
3 changed files with 5 additions and 5 deletions

View file

@ -100,7 +100,7 @@ static void map_library(const String& name, int fd)
static void map_library(const String& name)
{
// TODO: Do we want to also look for libs in other paths too?
String path = String::format("/usr/lib/%s", name.characters());
String path = String::formatted("/usr/lib/{}", name);
int fd = open(path.characters(), O_RDONLY);
ASSERT(fd >= 0);
map_library(name, fd);