tc, id);
stream_class = g_new0(struct bt_stream_class, 1);
if (!stream_class) {
- BT_LOGE_STR("Failed to allocate one stream class.");
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Failed to allocate one stream class.");
goto error;
}
stream_class->name.str = g_string_new(NULL);
if (!stream_class->name.str) {
- BT_LOGE_STR("Failed to allocate a GString.");
+ BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate a GString.");
ret = -1;
goto end;
}
stream_class->event_classes = g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_try_spec_release);
if (!stream_class->event_classes) {
- BT_LOGE_STR("Failed to allocate a GPtrArray.");
+ BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate a GPtrArray.");
goto error;
}
(bt_object_pool_destroy_object_func) free_field_wrapper,
stream_class);
if (ret) {
- BT_LOGE("Failed to initialize packet context field pool: ret=%d",
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Failed to initialize packet context field pool: ret=%d",
ret);
goto error;
}