summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/syslog.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-07 11:54:59 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-07 21:12:09 +0200
commitf1c62888038835a4f125978d93b35f6d88100d90 (patch)
tree7438b3aea2bf7df043f29612fa33dbc6c13ebfb7 /Userland/Libraries/LibC/syslog.cpp
parent72259d5ceec74ec2719717ba233d6274cd8bca1f (diff)
downloadserenity-f1c62888038835a4f125978d93b35f6d88100d90.zip
LibC: Convert StringBuilder::appendf() => AK::Format
Diffstat (limited to 'Userland/Libraries/LibC/syslog.cpp')
-rw-r--r--Userland/Libraries/LibC/syslog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/syslog.cpp b/Userland/Libraries/LibC/syslog.cpp
index d45d85127f..7e17a51498 100644
--- a/Userland/Libraries/LibC/syslog.cpp
+++ b/Userland/Libraries/LibC/syslog.cpp
@@ -119,9 +119,9 @@ void vsyslog_r(int priority, struct syslog_data* data, const char* message, va_l
// Some metadata would be consumed by a syslog daemon, if we had one.
if (data->logopt & LOG_PID)
- combined.appendf("%s[%d]: ", get_syslog_ident(data), getpid());
+ combined.appendff("{}[{}]: ", get_syslog_ident(data), getpid());
else
- combined.appendf("%s: ", get_syslog_ident(data));
+ combined.appendff("{}: ", get_syslog_ident(data));
combined.appendvf(message, args);
String combined_string = combined.build();