sysupdate: use log_syntax() when logging about a configuration file
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Apr 2024 16:48:40 +0000 (18:48 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Apr 2024 19:04:14 +0000 (04:04 +0900)
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

index ab4eab6780f67a8a8c6c63811cf9882e251198c6..435c38020e57d7191b86aeaa7c5f601bbe2338d3 100644 (file)
@@ -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)