3 /* log_large_test -- log a very large string to test the dynamic variants */
5 /* Copyright (c) 2007 Martin Quinson. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
11 #include "xbt/synchro.h"
13 XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logs of this example");
16 int main(int argc, char *argv[]){
17 char *tmp=bprintf("\n%d%s%d%s%d%s%d%s%d%s%d%s%d%s%d%s%d%s%d%s",
18 1,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
19 2,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
20 3,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
21 4,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
22 5,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
23 6,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
24 7,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
25 8,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
26 9,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n",
27 0,".........1.........2.........3.........4.........5.........6.........7.........8.........9.........0\n");
31 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);
32 INFO1("Done (strlen>%d)",(int) (10*strlen(tmp)));