summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-25 20:26:47 +0200
committerLennart Poettering <lennart@poettering.net>2017-09-26 17:46:33 +0200
commit7558e10c986ee42d1d107a912ae4a50065c6e8f0 (patch)
tree88468901888d0e9c3fc38471d391738cd0241ae2 /src
parentexecute: downgrade a log message ERR → WARNING, since we proceed ignoring i... (diff)
downloadsystemd-7558e10c986ee42d1d107a912ae4a50065c6e8f0.tar.xz
systemd-7558e10c986ee42d1d107a912ae4a50065c6e8f0.zip
log: let's make use of the fact that our functions return the negative error code for log_oom() too
Diffstat (limited to 'src')
-rw-r--r--src/basic/log.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/basic/log.c b/src/basic/log.c
index 168c6c37ce..59bc16f64e 100644
--- a/src/basic/log.c
+++ b/src/basic/log.c
@@ -834,9 +834,8 @@ void log_assert_failed_return_realm(
}
int log_oom_internal(LogRealm realm, const char *file, int line, const char *func) {
- log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR),
- ENOMEM, file, line, func, "Out of memory.");
- return -ENOMEM;
+ return log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR),
+ ENOMEM, file, line, func, "Out of memory.");
}
int log_format_iovec(