From dca15bd90573f22de1f1287a4cd094c6905a0535 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 3 Apr 2024 18:48:40 +0200 Subject: [PATCH] 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 --- src/sysupdate/sysupdate-transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysupdate/sysupdate-transfer.c b/src/sysupdate/sysupdate-transfer.c index ab4eab6780..435c38020e 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)