X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a201b7ceece70d2bc461ac48c8b746a36d07243..8a30d839e791237688f68d4047fef5a30293dfc4:/teshsuite/xbt/log_large_test.c?ds=sidebyside diff --git a/teshsuite/xbt/log_large_test.c b/teshsuite/xbt/log_large_test.c index 9eb95a03c9..20c4bbc4b9 100644 --- a/teshsuite/xbt/log_large_test.c +++ b/teshsuite/xbt/log_large_test.c @@ -1,12 +1,12 @@ /* log_large_test -- log a very large string to test the dynamic variants */ -/* Copyright (c) 2007 Martin Quinson. All rights reserved. */ +/* 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. */ -#include "gras.h" -#include "xbt/synchro.h" +#include "xbt.h" XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Logs of this example"); @@ -37,11 +37,10 @@ int main(int argc, char *argv[]) xbt_init(&argc, argv); - INFO10("This is a very large message:\n0%s1%s2%s3%s4%s5%s6%s7%s8%s9%s", tmp, - tmp, tmp, tmp, tmp, tmp, tmp, tmp, tmp, tmp); - INFO1("Done (strlen>%d)", (int) (10 * strlen(tmp))); + XBT_INFO("This is a very large message:\n0%s1%s2%s3%s4%s5%s6%s7%s8%s9%s", + tmp, tmp, tmp, tmp, tmp, tmp, tmp, tmp, tmp, tmp); + XBT_INFO("Done (strlen>%d)", (int) (10 * strlen(tmp))); free(tmp); - xbt_exit(); return 0; }