X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/28de1ff76a78ba4d87ea61d5d9fce01c6d035a18..59e3562d124c515d548481ce42f5ce57fd367b7f:/testsuite/surf/trace_usage.c diff --git a/testsuite/surf/trace_usage.c b/testsuite/surf/trace_usage.c index 5082646bc7..ea7b09b14e 100644 --- a/testsuite/surf/trace_usage.c +++ b/testsuite/surf/trace_usage.c @@ -1,8 +1,7 @@ -/* $Id$ */ - /* A few tests for the trace library */ -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2004, 2005, 2006, 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. */ @@ -17,7 +16,8 @@ #include "surf/surf.h" #include "xbt/log.h" -XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test,"Messages specific for surf example"); +XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test, + "Messages specific for surf example"); void test(void); void test(void) @@ -37,7 +37,7 @@ void test(void) while ((next_event_date = tmgr_history_next_date(history)) != -1.0) { DEBUG1("%g" " : \n", next_event_date); while (tmgr_history_get_next_event_leq(history, next_event_date, - &value, (void **) &resource)) { + &value, (void **) &resource)) { DEBUG2("\t %s : " "%g" "\n", resource, value); } if (next_event_date > 1000) @@ -56,7 +56,7 @@ void test(void) int main(int argc, char **argv) { - surf_init(&argc,argv); + surf_init(&argc, argv); test(); surf_exit(); return 0;