summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-03 11:12:25 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-03 11:29:49 +0100
commitd4341b76d07fd7117a36b2f4e4b41cab41f0cf14 (patch)
tree93b4858223bb7b0b1258fbd083d9a8dcbb7ec2e5 /src/core
parentjournald: modernize code to send notifications (diff)
downloadsystemd-d4341b76d07fd7117a36b2f4e4b41cab41f0cf14.tar.xz
systemd-d4341b76d07fd7117a36b2f4e4b41cab41f0cf14.zip
tree-wide: drop "f" from sd_notify() calls with a static string
If we don't need to do any formatting, let's optimize things a bit.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index d48e0b0878..c0de6acb80 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -3465,9 +3465,9 @@ static void user_manager_send_ready(Manager *m) {
if (!MANAGER_IS_USER(m) || m->ready_sent)
return;
- r = sd_notifyf(false,
- "READY=1\n"
- "STATUS=Reached " SPECIAL_BASIC_TARGET ".");
+ r = sd_notify(false,
+ "READY=1\n"
+ "STATUS=Reached " SPECIAL_BASIC_TARGET ".");
if (r < 0)
log_warning_errno(r, "Failed to send readiness notification, ignoring: %m");