#include <stdarg.h>
#include <glib.h>
#include "common/assert.h"
-#include "common/macros.h"
+#include "common/common.h"
#include "assert-cond-base.h"
static
return id;
}
-BT_HIDDEN
void bt_lib_assert_cond_failed(const char *cond_type, const char *func,
const char *id_suffix, const char *fmt, ...)
{
BT_ASSERT_COND_MSG("------------------------------------------------------------------------");
BT_ASSERT_COND_MSG("Error is:");
va_start(args, fmt);
- bt_lib_log_v(_BT_LOG_SRCLOC_FUNCTION, __FILE__, __LINE__, BT_LOG_FATAL,
+ bt_lib_log_v(__FILE__, __func__, __LINE__, BT_LOG_FATAL,
BT_LOG_TAG, fmt, &args);
va_end(args);
BT_ASSERT_COND_MSG("Aborting...");