summaryrefslogtreecommitdiff
path: root/src/basic/log.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-11 07:41:04 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-11 08:22:41 +0100
commitb3a791580556c7e6f0c9d8ac836408e1c16627b9 (patch)
treea4753d0cd6a1da9cfe76ddea0a9ff3a5e21cefab /src/basic/log.c
parent6597686865ffcba7450b44814618b94321cfa3cf (diff)
downloadsystemd-b3a791580556c7e6f0c9d8ac836408e1c16627b9.tar.gz
basic/log: add debug-level log_oom() variant
This is useful for contexts where only debug-level messages are allowed.
Diffstat (limited to 'src/basic/log.c')
-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 dd9c7db18b..7f2847da3c 100644
--- a/src/basic/log.c
+++ b/src/basic/log.c
@@ -885,9 +885,8 @@ void log_assert_failed_return_realm(
"Assertion '%s' failed at %s:%u, function %s(). Ignoring.");
}
-int log_oom_internal(LogRealm realm, const char *file, int line, const char *func) {
- return log_internal_realm(LOG_REALM_PLUS_LEVEL(realm, LOG_ERR),
- ENOMEM, file, line, func, "Out of memory.");
+int log_oom_internal(int level, const char *file, int line, const char *func) {
+ return log_internal_realm(level, ENOMEM, file, line, func, "Out of memory.");
}
int log_format_iovec(