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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-11-03 11:29:49 +01:00
parent d7737416f5
commit d4341b76d0
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4245,7 +4245,7 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r
return log_oom();
if (strv_find(tags, "READY=1")) {
r = sd_notifyf(false, "READY=1\n");
r = sd_notify(false, "READY=1\n");
if (r < 0)
log_warning_errno(r, "Failed to send readiness notification, ignoring: %m");
}