projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace all assert(false) and assert(0) with abort()
[babeltrace.git]
/
cli
/
babeltrace.c
diff --git
a/cli/babeltrace.c
b/cli/babeltrace.c
index 27516cd0829c224eda25e4f26e88bdf1238b2e21..3d37d4e01010d941def39933ab403f28aa1ff7eb 100644
(file)
--- 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:
break;
}
default:
- a
ssert(false
);
+ a
bort(
);
}
}
}
}
@@
-519,7
+519,7
@@
void print_cfg(struct bt_config *cfg)
print_cfg_print_lttng_live_sessions(cfg);
break;
default:
print_cfg_print_lttng_live_sessions(cfg);
break;
default:
- a
ssert(false
);
+ a
bort(
);
}
}
}
}
@@
-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);
*/
BT_LOGF("Invalid connection: downstream component is a source: "
"conn-arg=\"%s\"", cfg_conn->arg->str);
- a
ssert(false
);
+ a
bort(
);
}
downstream_port_count = port_count_fn(downstream_comp);
}
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:
ret = cmd_print_lttng_live_sessions(cfg);
break;
default:
- BT_LOGF("Invalid command: cmd=%d", cfg->command);
- a
ssert(false
);
+ BT_LOGF("Invalid
/unknown
command: cmd=%d", cfg->command);
+ a
bort(
);
}
BT_LOGI("Command completed: cmd=%d, command-name=\"%s\", ret=%d",
}
BT_LOGI("Command completed: cmd=%d, command-name=\"%s\", ret=%d",
This page took
0.023524 seconds
and
4
git commands to generate.