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:
+2
-3
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user