]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysctl: switch to log_syntax()
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Jul 2019 07:03:06 +0000 (09:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Jul 2019 07:24:47 +0000 (09:24 +0200)
With @keszybz' recent work this will give us clickable links in the
journalctl output.

src/sysctl/sysctl.c

index 9838701a3d9d9baa49c48991f6a3e667fa0a102d..eeefc8b8b0c809b94658cf21939bbcd9923c1f05 100644 (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;