diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-22 03:51:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-22 03:51:26 +0200 |
commit | 185986c61d4f84efcc02cc5766c77e876654a0a9 (patch) | |
tree | 8fa3cb00b30591f23850787a0ac501ebb340b7d2 /log.h | |
parent | 4f0f902fc8837999e5c9f3a6f7e2592cc6f096eb (diff) |
assert: store away assert msg before aborting, akin to glibc's __abort_msg
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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__) |