X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Flog.h;h=3dcfa113085b419a9bac1bbeade37e9acfdcdc54;hb=127b55d5a49e8e534e12107fc5d5a684c390d7aa;hp=ac20a985c5eec1248337de09ef21dcc68819e61a;hpb=87ff6b1c2a607c47b2374c5be41ac01302714979;p=elogind.git diff --git a/src/shared/log.h b/src/shared/log.h index ac20a985c..3dcfa1130 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -124,13 +124,19 @@ int log_dump_internal( const char *func, char *buffer); -_noreturn_ void log_assert_failed( +noreturn void log_assert_failed( const char *text, const char *file, int line, const char *func); -_noreturn_ void log_assert_failed_unreachable( +noreturn void log_assert_failed_unreachable( + const char *text, + const char *file, + int line, + const char *func); + +void log_assert_failed_return( const char *text, const char *file, int line, @@ -139,7 +145,7 @@ _noreturn_ void log_assert_failed_unreachable( #define log_full(level, ...) \ do { \ if (log_get_max_level() >= (level)) \ - log_meta(LOG_INFO, __FILE__, __LINE__, __func__, __VA_ARGS__); \ + log_meta((level), __FILE__, __LINE__, __func__, __VA_ARGS__); \ } while (0) #define log_debug(...) log_full(LOG_DEBUG, __VA_ARGS__)