* SOFTWARE.
*/
-#define BT_LOG_TAG "FIELD-PATH"
-#include "lib/lib-logging.h"
+#define BT_LOG_TAG "LIB/FIELD-PATH"
+#include "lib/logging.h"
#include "lib/assert-pre.h"
#include <babeltrace2/trace-ir/field-class.h>
field_path = g_new0(struct bt_field_path, 1);
if (!field_path) {
- BT_LOGE_STR("Failed to allocate one field path.");
+ BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate one field path.");
goto error;
}
field_path->items = g_array_new(FALSE, FALSE,
sizeof(struct bt_field_path_item));
if (!field_path->items) {
- BT_LOGE_STR("Failed to allocate a GArray.");
+ BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate a GArray.");
goto error;
}