-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_action, msg,
- "MSG actions for trace driven simulation");
-
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_action, msg, "MSG actions for trace driven simulation");
* Else, assume that each process gets the path in its deployment file
*/
msg_error_t MSG_action_trace_run(char *path)
* Else, assume that each process gets the path in its deployment file
*/
msg_error_t MSG_action_trace_run(char *path)
- xbt_action_fp = fopen(path, "r");
- if (xbt_action_fp == NULL)
- xbt_die("Cannot open %s: %s", path, strerror(errno));
+ xbt_action_fp = fopen(path, "r");
+ xbt_assert(xbt_action_fp != nullptr, "Cannot open %s: %s", path, strerror(errno));
- XBT_WARN
- ("Not all actions got consumed. If the simulation ended successfully (without deadlock), you may want to add new processes to your deployment file.");
-
+ XBT_WARN("Not all actions got consumed. If the simulation ended successfully (without deadlock),"
+ " you may want to add new processes to your deployment file.");
xbt_dict_foreach(xbt_action_queues, cursor, name, todo) {
XBT_WARN("Still %lu actions for %s", xbt_dynar_length(todo), name);
xbt_dict_foreach(xbt_action_queues, cursor, name, todo) {
XBT_WARN("Still %lu actions for %s", xbt_dynar_length(todo), name);