X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flogging%2Flog.c;h=f13694ea7233353361e485625222844ce1bb417c;hp=349204e8148fa24f047dc6fd0b98ff39f6017d57;hb=8b305066676fc7aa433e8eb668f9de8802008025;hpb=28ba44ad9ca14153e96c94a9100423ea224c1af3 diff --git a/src/logging/log.c b/src/logging/log.c index 349204e8..f13694ea 100644 --- a/src/logging/log.c +++ b/src/logging/log.c @@ -1193,7 +1193,8 @@ static void put_src(bt_log_message *const msg, const src_location *const src) #endif } -static void put_msg(bt_log_message *const msg, +static _BT_LOG_PRINTFLIKE(2, 0) +void put_msg(bt_log_message *const msg, const char *const fmt, va_list va) { int n; @@ -1268,7 +1269,8 @@ void bt_log_set_output_v(const unsigned mask, void *const arg, _bt_log_global_output.callback = callback; } -static void _bt_log_write_imp( +static _BT_LOG_PRINTFLIKE(6, 0) +void _bt_log_write_imp( const bt_log_spec *log, const src_location *const src, const mem_block *const mem, const int lvl, const char *const tag, const char *const fmt, va_list va)