X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f73270e1f1ec43af1ecfa4e9a8de06747108f35d..1bd1bbd35034c2e93a030a676dc244ad2cf74c70:/teshsuite/xbt/log_large/log_large.c diff --git a/teshsuite/xbt/log_large/log_large.c b/teshsuite/xbt/log_large/log_large.c index 9eeec686d9..3abb24a6b4 100644 --- a/teshsuite/xbt/log_large/log_large.c +++ b/teshsuite/xbt/log_large/log_large.c @@ -7,11 +7,13 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt.h" +#include XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Logs of this example"); int main(int argc, char *argv[]) { + MSG_init(&argc, argv); char *tmp = bprintf("\n%d%s%d%s%d%s%d%s%d%s%d%s%d%s%d%s%d%s%d%s", 1, ".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n", 2, ".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n", @@ -24,8 +26,6 @@ int main(int argc, char *argv[]) 9, ".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n", 0, ".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n"); - xbt_init(&argc, argv); - 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)));