X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a5de99b2e59f7e8d83c592d361a980d5f33693e5..ec16845133f5f1b5262d2d77d8ba22824fa8a446:/tools/tesh/run_context.c diff --git a/tools/tesh/run_context.c b/tools/tesh/run_context.c index d0a6b1026e..60b38bf0e1 100644 --- a/tools/tesh/run_context.c +++ b/tools/tesh/run_context.c @@ -470,13 +470,13 @@ static void rctx_mkfile(void) xbt_str_trim(filename, NULL); OUT = fopen(filename, "w"); if (!OUT) { - THROW3(system_error, errno, "%s: Cannot create file %s: %s", + THROWF(system_error, errno, "%s: Cannot create file %s: %s", rctx->filepos, filename, strerror(errno)); } err = (fprintf(OUT, "%s", rctx->input->data) < 0); err = (fclose(OUT) == -1) || err; if (err) { - THROW3(system_error, errno, "%s: Cannot write file %s: %s", + THROWF(system_error, errno, "%s: Cannot write file %s: %s", rctx->filepos, filename, strerror(errno)); } free(filename); @@ -677,7 +677,7 @@ void *rctx_wait(void *r) rctx_dump(rctx, "wait"); if (!rctx->is_stoppable) - THROW1(unknown_error, 0, "Cmd '%s' not started yet. Cannot wait it", + THROWF(unknown_error, 0, "Cmd '%s' not started yet. Cannot wait it", rctx->cmd); /* Wait for the child to die or the timeout to happen (or an armageddon to happen) */