X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3cf8dfbfab4595b3e7ae85d3cd89ce9dbcdd7a24..ec40265fd12aabf117e6c0c3f77347bc351cff76:/examples/msg/tracing/trace_platform.c diff --git a/examples/msg/tracing/trace_platform.c b/examples/msg/tracing/trace_platform.c index 9431a5fc6a..6cb9d80f7f 100644 --- a/examples/msg/tracing/trace_platform.c +++ b/examples/msg/tracing/trace_platform.c @@ -15,16 +15,10 @@ #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;