X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Fcontext.c;h=00409726e0d6d38714387b8af44e4354b87da1e8;hp=d06742231604b6b4ea55f32a5e2deeea32e8fd71;hb=c150f912b9a128f830d7a0fe42141ae1c9bec1ae;hpb=2552c374b9c87056187ff9af572f9fba7ee7839d diff --git a/lib/context.c b/lib/context.c index d0674223..00409726 100644 --- a/lib/context.c +++ b/lib/context.c @@ -67,12 +67,12 @@ struct bt_context *bt_context_create(void) int bt_context_add_trace(struct bt_context *ctx, const char *path, const char *format_name, - void (*packet_seek)(struct stream_pos *pos, size_t index, + void (*packet_seek)(struct bt_stream_pos *pos, size_t index, int whence), - struct mmap_stream_list *stream_list, + struct bt_mmap_stream_list *stream_list, FILE *metadata) { - struct trace_descriptor *td; + struct bt_trace_descriptor *td; struct format *fmt; struct bt_trace_handle *handle; int ret, closeret; @@ -90,7 +90,7 @@ int bt_context_add_trace(struct bt_context *ctx, const char *path, if (path) { td = fmt->open_trace(path, O_RDONLY, packet_seek, NULL); if (!td) { - fprintf(stderr, "[warning] [Context] Cannot open_trace of format %s at path %s.\n\n", + fprintf(stderr, "[warning] [Context] Cannot open_trace of format %s at path %s.\n", format_name, path); ret = -1; goto end;