Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move one more tracing test
[simgrid.git] / examples / msg / trace-user-variables / trace-user-variables.c
@@ -12,7 +12,7 @@
  * --cfg=tracing/platform:yes
  * (See \ref tracing_tracing_options for details)
  */
-
+#include <stdio.h>
 #include "simgrid/msg.h"
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
@@ -51,10 +51,8 @@ static int master(int argc, char *argv[])
 int main(int argc, char *argv[])
 {
   MSG_init(&argc, argv);
-  if (argc < 3) {
-    printf("Usage: %s platform_file deployment_file\n", argv[0]);
-    exit(1);
-  }
+  xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n"
+             "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]);
 
   MSG_create_environment(argv[1]);