summaryrefslogtreecommitdiff
path: root/Userland/Services/SystemServer/Service.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-07 20:45:35 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-07 21:12:09 +0200
commitf0687dbbb75f1e0e63c3064c6cca8c501c99bb9f (patch)
tree1b0875a2bedef4c2eb7271b589013c68a578bf91 /Userland/Services/SystemServer/Service.cpp
parent8c3b603da389fc5c2ac0c438ee681c5e2ddb3f00 (diff)
downloadserenity-f0687dbbb75f1e0e63c3064c6cca8c501c99bb9f.zip
Services: Convert StringBuilder::appendf() => AK::Format
Diffstat (limited to 'Userland/Services/SystemServer/Service.cpp')
-rw-r--r--Userland/Services/SystemServer/Service.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Services/SystemServer/Service.cpp b/Userland/Services/SystemServer/Service.cpp
index bc92b03c50..b3cb8fd8ed 100644
--- a/Userland/Services/SystemServer/Service.cpp
+++ b/Userland/Services/SystemServer/Service.cpp
@@ -196,7 +196,7 @@ void Service::spawn(int socket_fd)
VERIFY(m_sockets.size() == 1);
int fd = dup(socket_fd);
- builder.appendf("%s:%d", m_sockets[0].path.characters(), fd);
+ builder.appendff("{}:{}", m_sockets[0].path, fd);
} else {
// We were spawned as a regular process, so dup every socket for this
// service and let the service know via SOCKET_TAKEOVER.
@@ -205,8 +205,8 @@ void Service::spawn(int socket_fd)
int new_fd = dup(socket.fd);
if (i != 0)
- builder.append(" ");
- builder.appendf("%s:%d", socket.path.characters(), new_fd);
+ builder.append(' ');
+ builder.appendff("{}:{}", socket.path, new_fd);
}
}