From 8a65188437d4b70b15e52db02e210844bd45d57d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 26 Jul 2019 09:03:06 +0200 Subject: sysctl: switch to log_syntax() With @keszybz' recent work this will give us clickable links in the journalctl output. --- src/sysctl/sysctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c index 9838701a3d..eeefc8b8b0 100644 --- a/src/sysctl/sysctl.c +++ b/src/sysctl/sysctl.c @@ -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; -- cgit v1.2.3