FILE *metadata)
{
struct bt_trace_descriptor *td;
- struct format *fmt;
+ struct bt_format *fmt;
struct bt_trace_handle *handle;
int ret, closeret;
/* Create an handle for the trace */
handle = bt_trace_handle_create(ctx);
- if (handle < 0) {
+ if (!handle) {
fprintf(stderr, "[error] [Context] Creating trace handle %s .\n\n",
path);
ret = -1;