diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-10 13:00:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-10 16:20:08 +0200 |
commit | afb7e1ceb9f21265e3b8b859b768ae393e41bebd (patch) | |
tree | 8f45b8b5d55acacf6936d29fee15544586203450 /src/tmpfiles/tmpfiles.c | |
parent | Merge pull request #12863 from 1848/if_xfrm (diff) | |
download | systemd-afb7e1ceb9f21265e3b8b859b768ae393e41bebd.tar.xz systemd-afb7e1ceb9f21265e3b8b859b768ae393e41bebd.zip |
tmpfiles: use log_syntax() for complaining about configuration file errors
In the light of #12926 I needed some log messages for testing. This
tmpfiles one came to mind, since it's frequently seen on typical Fedora
systems. Alas, they didn't actually use log_syntax, and thus weren't
recognizable by the new config file urlifaction code. Let's fix that.
Diffstat (limited to '')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index b8ee856a15..ef817fca4f 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -2478,8 +2478,7 @@ static int patch_var_run(const char *fname, unsigned line, char **path) { /* Also log about this briefly. We do so at LOG_NOTICE level, as we fixed up the situation automatically, hence * there's no immediate need for action by the user. However, in the interest of making things less confusing * to the user, let's still inform the user that these snippets should really be updated. */ - - log_notice("[%s:%u] Line references path below legacy directory /var/run/, updating %s → %s; please update the tmpfiles.d/ drop-in file accordingly.", fname, line, *path, n); + log_syntax(NULL, LOG_NOTICE, fname, line, 0, "Line references path below legacy directory /var/run/, updating %s → %s; please update the tmpfiles.d/ drop-in file accordingly.", *path, n); free_and_replace(*path, n); |