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
This commit is contained in:
Lennart Poettering 2024-04-03 18:48:40 +02:00 committed by Yu Watanabe
parent 94ad70989f
commit dca15bd905

View 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)