X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2Fbabeltrace.c;h=83f300c5d9b2fa7635614fa477b173621f6a68b2;hp=ed19fa85a5b0fd59baa958be6f5eb3a8ef45d096;hb=05cab52530332c97aca9d8c78a8cae2f82f00896;hpb=347e42774758b794e25f5c2b452706100cadd54e diff --git a/converter/babeltrace.c b/converter/babeltrace.c index ed19fa85..83f300c5 100644 --- a/converter/babeltrace.c +++ b/converter/babeltrace.c @@ -606,7 +606,7 @@ int main(int argc, char **argv) } } fmt_read = bt_lookup_format(g_quark_from_static_string(opt_input_format)); - if (!fmt_read) { + if (!fmt_read || fmt_read->name != g_quark_from_static_string("ctf")) { fprintf(stderr, "[error] Format \"%s\" is not supported.\n\n", opt_input_format); partial_error = 1;