log: let's make use of the fact that our functions return the negative error code for log_oom() too
This commit is contained in:
parent
82677ae4c7
commit
7558e10c98
|
@ -834,9 +834,8 @@ void log_assert_failed_return_realm(
|
||||||
}
|
}
|
||||||
|
|
||||||
int log_oom_internal(LogRealm realm, const char *file, int line, const char *func) {
|
int log_oom_internal(LogRealm realm, const char *file, int line, const char *func) {
|
||||||
log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR),
|
return log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR),
|
||||||
ENOMEM, file, line, func, "Out of memory.");
|
ENOMEM, file, line, func, "Out of memory.");
|
||||||
return -ENOMEM;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int log_format_iovec(
|
int log_format_iovec(
|
||||||
|
|
Loading…
Reference in a new issue