projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44cb5c
)
install: upgrade message to a warning
author
Alex Crawford
<alex.crawford@coreos.com>
Thu, 28 Apr 2016 06:54:47 +0000
(23:54 -0700)
committer
Alex Crawford
<alex.crawford@coreos.com>
Thu, 28 Apr 2016 23:01:04 +0000
(16:01 -0700)
src/shared/install.c
patch
|
blob
|
history
diff --git
a/src/shared/install.c
b/src/shared/install.c
index b74ff6de224674d22afd4bf02d184c0a249dff02..1ea7e4674f8d863539ecb5a998f59b18de36a33e 100644
(file)
--- 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
);
}
}