#include <babeltrace/babeltrace.h>
#include <babeltrace/ctf/types.h>
-int babeltrace_debug = 0;
+int babeltrace_debug, babeltrace_verbose;
static uuid_t s_uuid;
char *line = NULL, *nl;
size_t linesize;
- ctf_init_pos(&pos, output);
+ ctf_init_pos(&pos, output, O_WRONLY);
write_packet_header(&pos, s_uuid);
write_packet_context(&pos);