X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a4b0a684c019c3c69ccace47ad12d34258785a44..3d845df082d79ab89649c1a8829eea201ae01085:/examples/simdag/simdag_trace.c diff --git a/examples/simdag/simdag_trace.c b/examples/simdag/simdag_trace.c index a39a9b8d47..cc2eabbbbf 100644 --- a/examples/simdag/simdag_trace.c +++ b/examples/simdag/simdag_trace.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2006, 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2006-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,7 +6,7 @@ #include #include -#include "simdag/simdag.h" +#include "simgrid/simdag.h" #include "xbt/ex.h" #include "xbt/log.h" @@ -27,7 +27,7 @@ int main(int argc, char **argv) double rate = -1.0; SD_workstation_t w1, w2; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* xbt_log_control_set("sd.thres=debug"); */ @@ -62,9 +62,9 @@ int main(int argc, char **argv) TRACE_category ("taskA"); TRACE_category ("taskB"); TRACE_category ("taskC"); - SD_task_set_category (taskA, "taskA"); - SD_task_set_category (taskB, "taskB"); - SD_task_set_category (taskC, "taskC"); + TRACE_sd_set_task_category (taskA, "taskA"); + TRACE_sd_set_task_category (taskB, "taskB"); + TRACE_sd_set_task_category (taskC, "taskC"); /* if everything is ok, no exception is forwarded or rethrown by main() */ @@ -124,6 +124,7 @@ int main(int argc, char **argv) } xbt_dynar_free_container(&changed_tasks); } + xbt_dynar_free_container(&changed_tasks); XBT_DEBUG("Destroying tasks...");