From: Lennart Poettering Date: Thu, 18 Oct 2018 14:18:35 +0000 (+0200) Subject: install: pass encountered error number to log_syntax() X-Git-Tag: v240~513^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ac3c9ab1bd2f26a45b3a8703d35652dd3dffab1;p=thirdparty%2Fsystemd.git install: pass encountered error number to log_syntax() --- diff --git a/src/shared/install.c b/src/shared/install.c index 61b713c6b60..d806bc69ff7 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -2880,7 +2880,7 @@ static int read_presets(UnitFileScope scope, const char *root_dir, Presets *pres /* Unit_name will remain the same as parameter when no instances are specified */ r = split_pattern_into_name_and_instances(parameter, &unit_name, &instances); if (r < 0) { - log_syntax(NULL, LOG_WARNING, *p, n, 0, "Couldn't parse line '%s'. Ignoring.", line); + log_syntax(NULL, LOG_WARNING, *p, n, r, "Couldn't parse line '%s'. Ignoring.", line); continue; }