diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-01-17 12:05:33 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-01-17 12:34:53 +0100 |
commit | b7f336383dc8ba58f720adb4c1d218348bf57e54 (patch) | |
tree | 525625511aacebb21dea18cf3156cd0c6c8c7dc5 /src/log.h | |
parent | 2b7dec8661029fd531b3818ca5a5470fa038751c (diff) |
log: make asserts cheaper
On my x86_64 this shrinks the size of .text by 53 KB (7 %).
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -73,11 +73,8 @@ int 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); +_noreturn_ void log_assert_failed(const char *text, const char *file, int line, const char *func); +_noreturn_ void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func); /* This modifies the buffer passed! */ int log_dump_internal( |