-void bt_lib_log_v(const char *func, const char *file, unsigned line,
+void bt_lib_log_v(const char *file, const char *func, unsigned line,
int lvl, const char *tag, const char *fmt, va_list *args)
{
BT_ASSERT(fmt);
bt_common_custom_vsnprintf(lib_logging_buf, LIB_LOGGING_BUF_SIZE, '!',
handle_conversion_specifier_bt, NULL, fmt, args);
int lvl, const char *tag, const char *fmt, va_list *args)
{
BT_ASSERT(fmt);
bt_common_custom_vsnprintf(lib_logging_buf, LIB_LOGGING_BUF_SIZE, '!',
handle_conversion_specifier_bt, NULL, fmt, args);
- _bt_log_write_d(func, file, line, lvl, tag, "%s", lib_logging_buf);
+ bt_log_write(file, func, line, lvl, tag, lib_logging_buf);
-void bt_lib_log(const char *func, const char *file, unsigned line,
+void bt_lib_log(const char *file, const char *func, unsigned line,
int lvl, const char *tag, const char *fmt, ...)
{
va_list args;
BT_ASSERT(fmt);
va_start(args, fmt);
int lvl, const char *tag, const char *fmt, ...)
{
va_list args;
BT_ASSERT(fmt);
va_start(args, fmt);
- bt_lib_log_v(func, file, line, lvl, tag, fmt, &args);
+ bt_lib_log_v(file, func, line, lvl, tag, fmt, &args);
- _bt_log_write_d(func, file, line, lvl, tag, "%s",
- lib_logging_buf);
+ bt_log_write(file, func, line, lvl, tag, lib_logging_buf);