diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-09-25 20:26:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-09-26 17:46:33 +0200 |
commit | 7558e10c986ee42d1d107a912ae4a50065c6e8f0 (patch) | |
tree | 88468901888d0e9c3fc38471d391738cd0241ae2 /src | |
parent | execute: downgrade a log message ERR → WARNING, since we proceed ignoring i... (diff) | |
download | systemd-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.c | 5 |
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( |