Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some cleanups before reorg
[simgrid.git] / examples / msg / tracing / trace_platform.c
index 9431a5fc6a66df0d90c154906e5ca3d7081edfe5..6cb9d80f7f9b4e7b4f9cc3df3aab20a23e66e498 100644 (file)
 
 #include "simgrid/msg.h"
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
-
 int main(int argc, char *argv[])
 {
   MSG_init(&argc, argv);
-  if (argc < 2) {
-    printf("Usage: %s platform_file\n", argv[0]);
-    exit(1);
-  }
-
+  xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
   MSG_create_environment(argv[1]);
   MSG_main();
   return 0;