summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-01-17 12:05:33 +0100
committerMichal Schmidt <mschmidt@redhat.com>2012-01-17 12:34:53 +0100
commitb7f336383dc8ba58f720adb4c1d218348bf57e54 (patch)
tree525625511aacebb21dea18cf3156cd0c6c8c7dc5 /src/log.h
parent2b7dec8661029fd531b3818ca5a5470fa038751c (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.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/log.h b/src/log.h
index 6ab07a5422..7028a13275 100644
--- a/src/log.h
+++ b/src/log.h
@@ -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(