XBT_INFO("Done receiving %.f bytes from %s", cmd->d_arg, cmd->str_arg);
} else {
- xbt_die(bprintf
- ("unknown command: %s", xbt_workload_elm_to_string(cmd)));
+ xbt_die("unknown command: %s", xbt_workload_elm_to_string(cmd));
}
}
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] == '#') {
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);
XBT_DEBUG("Set timeout to %d", timeout);
}
else {
- xbt_die(bprintf("Invalid chord option '%s'", options[0]));
+ xbt_die("Invalid chord option '%s'", options[0]);
}
}
options++;
MSG_task_destroy(task);
} else {
XBT_INFO("Hey ?! What's up ? ");
- xbt_die(bprintf("Unexpected behavior with '%s': %d", slaves[i]->name,
- a));
+ xbt_die("Unexpected behavior with '%s': %d", slaves[i]->name, a);
}
}
SD_task_get_name(task));
break;
default:
- xbt_die(bprintf
- ("Task %s is of unknown kind %d", SD_task_get_name(task),
- SD_task_get_kind(task)));
+ xbt_die("Task %s is of unknown kind %d", SD_task_get_name(task),
+ SD_task_get_kind(task));
}
SD_task_destroy(task);
}
SD_task_get_name(task));
break;
default:
- xbt_die(bprintf
- ("Task %s is of unknown kind %d", SD_task_get_name(task),
- SD_task_get_kind(task)));
+ xbt_die("Task %s is of unknown kind %d", SD_task_get_name(task),
+ SD_task_get_kind(task));
}
SD_task_destroy(task);
}
SD_task_get_name(task));
break;
default:
- xbt_die(bprintf
- ("Task %s is of unknown kind %d", SD_task_get_name(task),
- SD_task_get_kind(task)));
+ xbt_die("Task %s is of unknown kind %d", SD_task_get_name(task),
+ SD_task_get_kind(task));
}
SD_task_destroy(task);
}
res = malloc(n);
if (!res)
- xbt_die(bprintf("Memory allocation of %lu bytes failed",
- (unsigned long)n));
+ xbt_die("Memory allocation of %lu bytes failed", (unsigned long)n);
return res;
}
//if (n==0) xbt_die("calloc(0) is not portable");
res = calloc(n, 1);
if (!res)
- xbt_die(bprintf("Memory callocation of %lu bytes failed",
- (unsigned long)n));
+ xbt_die("Memory callocation of %lu bytes failed", (unsigned long)n);
return res;
}
if (p) {
res = realloc(p, s);
if (!res)
- xbt_die(bprintf("memory (re)allocation of %lu bytes failed",
- (unsigned long)s));
+ xbt_die("memory (re)allocation of %lu bytes failed", (unsigned long)s);
} else {
res = xbt_malloc(s);
}
SD_task_do_schedule(task);
break;
default:
- xbt_die(bprintf("Kind of task %s not supported by SD_task_schedulev()",
- SD_task_get_name(task)));
+ xbt_die("Kind of task %s not supported by SD_task_schedulev()",
+ SD_task_get_name(task));
}
if (task->kind == SD_TASK_COMM_E2E) {
XBT_VERB("Schedule comm task %s between %s -> %s. It costs %.f bytes",
XBT_DEBUG("Destroy action %p (refcount:%d)", action, action->comm.refcount);
if (action->comm.refcount <= 0)
- xbt_die(bprintf("the refcount of comm %p is already 0 before decreasing it. That's a bug!",action));
+ xbt_die("the refcount of comm %p is already 0 before decreasing it. "
+ "That's a bug!", action);
action->comm.refcount--;
if (action->comm.refcount > 0)
/* Add a flow to the GTNets Simulation, associated to this action */
if (gtnets_create_flow(src, dst, size, (void *) action) < 0) {
- xbt_die(bprintf("Not route between host %s and host %s", src_name,
- dst_name));
+ xbt_die("Not route between host %s and host %s", src_name, dst_name);
}
#ifdef HAVE_TRACING
TRACE_surf_gtnets_communicate(action, src, dst);
strcat(name_list, ", ");
strcat(name_list, table[i].name);
}
- xbt_die(bprintf("Model '%s' is invalid! Valid models are: %s.", name,
- name_list));
+ xbt_die("Model '%s' is invalid! Valid models are: %s.", name, name_list);
return -1;
}
param_list = dst_list;
param_size = dst_size;
} else {
- xbt_die(bprintf(
- "bad string parameter, support only \"src\" and \"dst\", at offset: %d (\"%s\")",
- i, value));
+ xbt_die("bad string parameter, support only \"src\" and \"dst\", "
+ "at offset: %d (\"%s\")", i, value);
}
i = i + 3;
are_processing_units = 0;
rule_list = routing->list_ASroute;
} else
- xbt_die(bprintf("Ask for route \"from\"(%s) or \"to\"(%s) no found in the local table",
- src, dst));
+ xbt_die("Ask for route \"from\"(%s) or \"to\"(%s) no found in "
+ "the local table", src, dst);
int rc_src = -1;
int rc_dst = -1;
xbt_strdup(A_surfxml_trace_connect_element), free);
break;
default:
- xbt_die(bprintf("Cannot connect trace %s to %s: kind of trace unknown",
- A_surfxml_trace_connect_trace,
- A_surfxml_trace_connect_element));
+ xbt_die("Cannot connect trace %s to %s: kind of trace unknown",
+ A_surfxml_trace_connect_trace, A_surfxml_trace_connect_element);
}
}
continue;
if (sscanf(val, "%lg" " " "%lg" "\n", &event.delta, &event.value) != 2)
- xbt_die(bprintf
- ("%s:%d: Syntax error in trace\n%s", id, linecount, input));
+ xbt_die("%s:%d: Syntax error in trace\n%s", id, linecount, input);
if (last_event) {
if (last_event->delta > event.delta) {
- xbt_die(bprintf
- ("%s:%d: Invalid trace: Events must be sorted, but time %lg > time %lg.\n%s",
- id, linecount, last_event->delta, event.delta, input));
+ xbt_die("%s:%d: Invalid trace: Events must be sorted, "
+ "but time %lg > time %lg.\n%s",
+ id, linecount, last_event->delta, event.delta, input);
}
last_event->delta = event.delta - last_event->delta;
}
break;
default:
- xbt_die(bprintf("Config element variable %s not valid (type=%d)", name,
- type));
+ xbt_die("Config element variable %s not valid (type=%d)", name, type);
}
}
val = strchr(name, ':');
if (!val) {
free(optionlist_cpy);
- xbt_die(bprintf(
- "Option '%s' badly formated. Should be of the form 'name:value'",
- name));
+ xbt_die("Option '%s' badly formated. Should be of the form 'name:value'",
+ name);
}
*(val++) = '\0';
i = strtol(val, &val, 0);
if (val == NULL) {
free(optionlist_cpy);
- xbt_die(bprintf(
- "Value of option %s not valid. Should be an integer",
- name));
+ xbt_die("Value of option %s not valid. Should be an integer", name);
}
xbt_cfg_set_int(cfg, name, i); /* throws */
d = strtod(val, &val);
if (val == NULL) {
free(optionlist_cpy);
- xbt_die(bprintf(
- "Value of option %s not valid. Should be a double",
- name));
+ xbt_die("Value of option %s not valid. Should be a double", name);
}
xbt_cfg_set_double(cfg, name, d); /* throws */
val = strchr(val, ':');
if (!val) {
free(optionlist_cpy);
- xbt_die(bprintf(
- "Value of option %s not valid. Should be an peer (machine:port)",
- name));
+ xbt_die("Value of option %s not valid. Should be an peer (machine:port)",
+ name);
}
*(val++) = '\0';
i = strtol(val, &val, 0);
if (val == NULL) {
free(optionlist_cpy);
- xbt_die(bprintf(
- "Value of option %s not valid. Should be an peer (machine:port)",
- name));
+ xbt_die("Value of option %s not valid. Should be an peer (machine:port)",
+ name);
}
xbt_cfg_set_peer(cfg, name, str, i); /* throws */
TRY {
SD_create_environment(platformFile);
} CATCH(e) {
- xbt_die(bprintf("Error while loading %s: %s",platformFile,e.msg));
+ xbt_die("Error while loading %s: %s",platformFile,e.msg);
}
printf("<?xml version='1.0'?>\n");
TRY {
SD_create_environment(platformFile);
} CATCH(e) {
- xbt_die(bprintf("Error while loading %s: %s",platformFile,e.msg));
+ xbt_die("Error while loading %s: %s",platformFile,e.msg);
}
//creating the graph structure
deployment_file = argv[i];
surf_parse_open(deployment_file);
if (surf_parse())
- xbt_die(bprintf("Parse error in %s", deployment_file));
+ xbt_die("Parse error in %s", deployment_file);
surf_parse_close();
}