diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-03 11:12:25 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-03 11:29:49 +0100 |
commit | d4341b76d07fd7117a36b2f4e4b41cab41f0cf14 (patch) | |
tree | 93b4858223bb7b0b1258fbd083d9a8dcbb7ec2e5 /src/core | |
parent | journald: modernize code to send notifications (diff) | |
download | systemd-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.c | 6 |
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"); |