X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..377ac7d3e14671c3feb8074eeb6db36f9667bac5:/examples/simdag/metaxml/sd_meta.c diff --git a/examples/simdag/metaxml/sd_meta.c b/examples/simdag/metaxml/sd_meta.c index d2a54f2c40..369da0f04d 100644 --- a/examples/simdag/metaxml/sd_meta.c +++ b/examples/simdag/metaxml/sd_meta.c @@ -1,6 +1,13 @@ -/* - See examples/platforms/metaxml.xml and examples/platforms/metaxml_platform.xml files for examples on how to use the cluster, foreach, set, route:multi, trace and trace:connect tags +/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +/* See examples/platforms/metaxml.xml and examples/platforms/metaxml_platform.xml + for examples on how to use the cluster, foreach, set, route:multi, trace and trace:connect tags */ + #include #include #include "simdag/simdag.h" @@ -30,8 +37,8 @@ int main(int argc, char **argv) /* xbt_log_control_set("sd.thres=debug"); */ if (argc < 2) { - INFO1("Usage: %s platform_file", argv[0]); - INFO1("example: %s sd_platform.xml", argv[0]); + XBT_INFO("Usage: %s platform_file", argv[0]); + XBT_INFO("example: %s sd_platform.xml", argv[0]); exit(1); } @@ -54,11 +61,11 @@ int main(int argc, char **argv) w2 = workstations[j]; name1 = SD_workstation_get_name(w1); name2 = SD_workstation_get_name(w2); - INFO2("Route between %s and %s:", name1, name2); + XBT_INFO("Route between %s and %s:", name1, name2); route = SD_route_get_list(w1, w2); route_size = SD_route_get_size(w1, w2); for (k = 0; k < route_size; k++) { - INFO3("\tLink %s: latency = %f, bandwidth = %f", + XBT_INFO("\tLink %s: latency = %f, bandwidth = %f", SD_link_get_name(route[k]), SD_link_get_current_latency(route[k]), SD_link_get_current_bandwidth(route[k]));