Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factoring and cleanups for msg/tracing
[simgrid.git] / examples / msg / tracing / trace_platform.c
index 9411bdf..9431a5f 100644 (file)
@@ -6,24 +6,17 @@
 
 /** @addtogroup MSG_examples
  * 
 
 /** @addtogroup MSG_examples
  * 
- * - <b>tracing/trace_platform.c</b>: 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:
+ * - <b>tracing/trace_platform.c</b>: 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)
  */
 
  * --cfg=tracing:yes
  * --cfg=tracing/categorized:yes
  * (See \ref tracing_tracing_options for details)
  */
 
-#include <stdio.h>
 #include "simgrid/msg.h"
 #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");
 
 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);
 int main(int argc, char *argv[])
 {
   MSG_init(&argc, argv);
@@ -32,8 +25,7 @@ int main(int argc, char *argv[])
     exit(1);
   }
 
     exit(1);
   }
 
-  char *platform_file = argv[1];
-  MSG_create_environment(platform_file);
+  MSG_create_environment(argv[1]);
   MSG_main();
   return 0;
 }
   MSG_main();
   return 0;
 }