summaryrefslogtreecommitdiff
path: root/src/shared/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-10 17:01:10 +0000
committerLennart Poettering <lennart@poettering.net>2013-12-10 17:01:10 +0000
commit80514f9c9bb86dbba761e4b026e5d62156ea112c (patch)
tree2dd06a646831d5da062f73543e5ac3909ac5fd97 /src/shared/log.h
parent6e8df5f00a3874decf1e5542da3d65b25f6da1dc (diff)
macro: log assertion at debug level in assert_return()
Diffstat (limited to 'src/shared/log.h')
-rw-r--r--src/shared/log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/log.h b/src/shared/log.h
index 0dc5c26100..de0e000371 100644
--- a/src/shared/log.h
+++ b/src/shared/log.h
@@ -136,6 +136,12 @@ _noreturn_ void log_assert_failed_unreachable(
int line,
const char *func);
+void log_assert_failed_return(
+ const char *text,
+ const char *file,
+ int line,
+ const char *func);
+
#define log_full(level, ...) \
do { \
if (log_get_max_level() >= (level)) \