sysctl: switch to log_syntax()

With @keszybz' recent work this will give us clickable links in the
journalctl output.
This commit is contained in:
Lennart Poettering 2019-07-26 09:03:06 +02:00
parent be74f51605
commit 8a65188437

View file

@ -116,8 +116,7 @@ static int parse_file(OrderedHashmap *sysctl_options, const char *path, bool ign
value = strchr(p, '=');
if (!value) {
log_error("Line is not an assignment at '%s:%u': %s", path, c, p);
log_syntax(NULL, LOG_WARNING, path, c, 0, "Line is not an assignment, ignoring: %s", p);
if (r == 0)
r = -EINVAL;
continue;