X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc01c6a871dbbfd0cc84e26eb9f94aeb539e613e..66b0686fe441796325c3b5738b1b880d15ce1ea6:/examples/gras/replay/xbt_workload.c diff --git a/examples/gras/replay/xbt_workload.c b/examples/gras/replay/xbt_workload.c index 769d8b53a2..f3b3ddf2c2 100644 --- a/examples/gras/replay/xbt_workload.c +++ b/examples/gras/replay/xbt_workload.c @@ -56,7 +56,7 @@ xbt_workload_elm_t xbt_workload_elm_parse(char *line) res->action = XBT_WORKLOAD_COMPUTE; sscanf(words[++i], "%lg", &(res->d_arg)); } else { - xbt_die(bprintf("Unparsable command: %s (in %s)", words[i], line)); + xbt_die("Unparsable command: %s (in %s)", words[i], line); } i++; if (words[i] && words[i][0] == '#') { @@ -119,7 +119,7 @@ char *xbt_workload_elm_to_string(xbt_workload_elm_t cmd) free(addon); break; default: - xbt_die(bprintf("Unknown command %d in '%s...'", cmd->action, res)); + xbt_die("Unknown command %d in '%s...'", cmd->action, res); } if (cmd->comment) { addon = bprintf(" (comment: %s)", cmd->comment); @@ -157,7 +157,7 @@ xbt_dynar_t xbt_workload_parse_file(char *filename) { FILE *file_in; file_in = fopen(filename, "r"); - xbt_assert1(file_in, "cannot open tracefile '%s'", filename); + xbt_assert(file_in, "cannot open tracefile '%s'", filename); char *str_in = xbt_str_from_file(file_in); fclose(file_in); xbt_dynar_t in = xbt_str_split(str_in, "\n");