From: Lennart Poettering Date: Wed, 3 Apr 2024 16:48:40 +0000 (+0200) Subject: sysupdate: use log_syntax() when logging about a configuration file X-Git-Tag: v256-rc1~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dca15bd90573f22de1f1287a4cd094c6905a0535;p=thirdparty%2Fsystemd.git sysupdate: use log_syntax() when logging about a configuration file All code around this does this too, hence do it here as well. Also fix plural verb form. Follow-up for: #32018 --- diff --git a/src/sysupdate/sysupdate-transfer.c b/src/sysupdate/sysupdate-transfer.c index ab4eab6780f..435c38020e5 100644 --- a/src/sysupdate/sysupdate-transfer.c +++ b/src/sysupdate/sysupdate-transfer.c @@ -532,7 +532,7 @@ int transfer_read_definition(Transfer *t, const char *path) { "Target path is not a normalized, absolute path: %s", t->target.path); if (strv_isempty(t->target.patterns)) { - log_info("Target specifications lacks MatchPattern=. Assuming same value as in Source specification"); + log_syntax(NULL, LOG_INFO, path, 1, 0, "Target specification lacks MatchPattern= expression. Assuming same value as in source specification."); strv_free(t->target.patterns); t->target.patterns = strv_copy(t->source.patterns); if (!t->target.patterns)