X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/26ba0ceb642e7e45fdf416ea0fe264583ffd27bf..ba7ceb6bb4bbcfed5106581edeab7fea90c8e26c:/examples/msg/tracing/trace_platform.c diff --git a/examples/msg/tracing/trace_platform.c b/examples/msg/tracing/trace_platform.c index 9411bdf58b..9431a5fc6a 100644 --- a/examples/msg/tracing/trace_platform.c +++ b/examples/msg/tracing/trace_platform.c @@ -6,24 +6,17 @@ /** @addtogroup MSG_examples * - * - tracing/trace_platform.c: This program demonstrates how a - * platform file is traced to a Paje trace file format using the tracing - * mechanism of Simgrid. - * You might want to run this program with the following parameters: + * - tracing/trace_platform.c: This program demonstrates how a platform file is traced to a Paje trace file + * format using the tracing mechanism of Simgrid. You might want to run this program with the following parameters: * --cfg=tracing:yes * --cfg=tracing/categorized:yes * (See \ref tracing_tracing_options for details) */ -#include #include "simgrid/msg.h" -#include "xbt/sysdep.h" /* calloc, printf */ -#include "xbt/log.h" -#include "xbt/asserts.h" XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); -/** Main function */ int main(int argc, char *argv[]) { MSG_init(&argc, argv); @@ -32,8 +25,7 @@ int main(int argc, char *argv[]) exit(1); } - char *platform_file = argv[1]; - MSG_create_environment(platform_file); + MSG_create_environment(argv[1]); MSG_main(); return 0; }