summaryrefslogtreecommitdiffstats
path: root/src/basic/log.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-09-17 19:50:19 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-17 19:50:19 +0200
commit572d031eca36e8f0bddce99201617f632936eda0 (patch)
treea9d0af033166c343cf59b89f334feacb58ca608f /src/basic/log.h
parentnetwork: log loaded .network and .netdev files (diff)
downloadsystemd-572d031eca36e8f0bddce99201617f632936eda0.tar.xz
systemd-572d031eca36e8f0bddce99201617f632936eda0.zip
log: introduce log_oom_full()
Diffstat (limited to 'src/basic/log.h')
-rw-r--r--src/basic/log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/basic/log.h b/src/basic/log.h
index ac9d72202b..3859a6c41d 100644
--- a/src/basic/log.h
+++ b/src/basic/log.h
@@ -300,9 +300,10 @@ int log_emergency_level(void);
#define log_dump(level, buffer) \
log_dump_internal(level, 0, PROJECT_FILE, __LINE__, __func__, buffer)
-#define log_oom() log_oom_internal(LOG_ERR, PROJECT_FILE, __LINE__, __func__)
-#define log_oom_debug() log_oom_internal(LOG_DEBUG, PROJECT_FILE, __LINE__, __func__)
-#define log_oom_warning() log_oom_internal(LOG_WARNING, PROJECT_FILE, __LINE__, __func__)
+#define log_oom_full(level) log_oom_internal(level, PROJECT_FILE, __LINE__, __func__)
+#define log_oom() log_oom_full(LOG_ERR)
+#define log_oom_debug() log_oom_full(LOG_DEBUG)
+#define log_oom_warning() log_oom_full(LOG_WARNING)
bool log_on_console(void) _pure_;