summaryrefslogtreecommitdiff
path: root/src/basic/log.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-05 15:51:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-05 17:15:04 +0200
commit07b3075fad90a63f3a40320e3e30958e6f450c3b (patch)
tree780c411f8074e203c479119df458d53f60be87a7 /src/basic/log.c
parenta687f50009104a9314f1ba9a6c80ebaf7dbe23dc (diff)
downloadsystemd-07b3075fad90a63f3a40320e3e30958e6f450c3b.tar.gz
basic/log: use SYNTHETIC_ERRNO in one more place
Diffstat (limited to 'src/basic/log.c')
-rw-r--r--src/basic/log.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/basic/log.c b/src/basic/log.c
index b4c16a3e1b..fb183ea9e7 100644
--- a/src/basic/log.c
+++ b/src/basic/log.c
@@ -1431,10 +1431,9 @@ int log_syntax_invalid_utf8_internal(
if (rvalue)
p = utf8_escape_invalid(rvalue);
- log_syntax_internal(unit, level, config_file, config_line, 0, file, line, func,
- "String is not UTF-8 clean, ignoring assignment: %s", strna(p));
-
- return -EINVAL;
+ return log_syntax_internal(unit, level, config_file, config_line,
+ SYNTHETIC_ERRNO(EINVAL), file, line, func,
+ "String is not UTF-8 clean, ignoring assignment: %s", strna(p));
}
void log_set_upgrade_syslog_to_journal(bool b) {