From d4341b76d07fd7117a36b2f4e4b41cab41f0cf14 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 3 Nov 2021 11:12:25 +0100 Subject: 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. --- src/core/manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') 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"); -- cgit v1.2.3