summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-22 03:51:26 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-22 03:51:26 +0200
commit185986c61d4f84efcc02cc5766c77e876654a0a9 (patch)
tree8fa3cb00b30591f23850787a0ac501ebb340b7d2 /log.h
parent4f0f902fc8837999e5c9f3a6f7e2592cc6f096eb (diff)
assert: store away assert msg before aborting, akin to glibc's __abort_msg
Diffstat (limited to 'log.h')
-rw-r--r--log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/log.h b/log.h
index f424c191f..0fc1834f6 100644
--- a/log.h
+++ b/log.h
@@ -57,6 +57,12 @@ void log_meta(
const char *func,
const char *format, ...) _printf_attr(5,6);
+_noreturn void log_assert(
+ const char*file,
+ int line,
+ const char *func,
+ const char *format, ...) _printf_attr(4,5);
+
#define log_debug(...) log_meta(LOG_DEBUG, __FILE__, __LINE__, __func__, __VA_ARGS__)
#define log_info(...) log_meta(LOG_INFO, __FILE__, __LINE__, __func__, __VA_ARGS__)
#define log_notice(...) log_meta(LOG_NOTICE, __FILE__, __LINE__, __func__, __VA_ARGS__)