summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorAlex Crawford <alex.crawford@coreos.com>2016-04-27 23:54:47 -0700
committerAlex Crawford <alex.crawford@coreos.com>2016-04-28 16:01:04 -0700
commitd544d1a4d596106ffc7df3bbc4eee695e4e1ef70 (patch)
tree089fa57d43b04328385c95fd1ba6afb821641d78 /src/shared
parenta44cb5cbf79cd2af699e981256fa25b6246d30d8 (diff)
install: upgrade message to a warning
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/install.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index b74ff6de22..1ea7e4674f 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -2403,6 +2403,7 @@ int unit_file_query_preset(UnitFileScope scope, const char *root_dir, const char
STRV_FOREACH(p, files) {
_cleanup_fclose_ FILE *f;
char line[LINE_MAX];
+ int n = 0;
f = fopen(*p, "re");
if (!f) {
@@ -2417,6 +2418,7 @@ int unit_file_query_preset(UnitFileScope scope, const char *root_dir, const char
char *l;
l = strstrip(line);
+ n++;
if (isempty(l))
continue;
@@ -2443,7 +2445,7 @@ int unit_file_query_preset(UnitFileScope scope, const char *root_dir, const char
continue;
}
- log_debug("Couldn't parse line '%s'", l);
+ log_syntax(NULL, LOG_WARNING, *p, n, 0, "Couldn't parse line '%s'. Ignoring.", line);
}
}