X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=cli%2Fbabeltrace.c;h=3d37d4e01010d941def39933ab403f28aa1ff7eb;hb=0fbb9a9fffe22e0d5211a47118102fa0ba4a766a;hp=27516cd0829c224eda25e4f26e88bdf1238b2e21;hpb=5af447e5102d6226ee198e4db52b51e12075f1bb;p=babeltrace.git diff --git a/cli/babeltrace.c b/cli/babeltrace.c index 27516cd0..3d37d4e0 100644 --- a/cli/babeltrace.c +++ b/cli/babeltrace.c @@ -366,7 +366,7 @@ void print_value_rec(FILE *fp, struct bt_value *value, size_t indent) break; } default: - assert(false); + abort(); } } @@ -519,7 +519,7 @@ void print_cfg(struct bt_config *cfg) print_cfg_print_lttng_live_sessions(cfg); break; default: - assert(false); + abort(); } } @@ -1203,7 +1203,7 @@ int cmd_run_ctx_connect_upstream_port_to_downstream_component( */ BT_LOGF("Invalid connection: downstream component is a source: " "conn-arg=\"%s\"", cfg_conn->arg->str); - assert(false); + abort(); } downstream_port_count = port_count_fn(downstream_comp); @@ -1962,8 +1962,8 @@ int main(int argc, const char **argv) ret = cmd_print_lttng_live_sessions(cfg); break; default: - BT_LOGF("Invalid command: cmd=%d", cfg->command); - assert(false); + BT_LOGF("Invalid/unknown command: cmd=%d", cfg->command); + abort(); } BT_LOGI("Command completed: cmd=%d, command-name=\"%s\", ret=%d",