X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b3b356352e87ae00a20f737c48e19b0c8413455a..1bdbe2db10271b1d1948e1ee0382abcfe622a991:/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;
}