85#define MY_TRACE(MY_TAG, args...) \
86char __CLogTag__[512] = {0}; \
87snprintf(__CLogTag__, sizeof(__CLogTag__), "[%lu][%s][%lu]", 0lu, MY_TAG, 0lu); \
88snprintf(__CLogTag__+strlen(__CLogTag__), sizeof(__CLogTag__) - strlen(__CLogTag__) - 1, args); \
89 fprintf(stdout,"%s\n",__CLogTag__);
(gdb)
90
91
92TEST_F(HttpDataSourceTest, test3) { //
93MY_TRACE("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","%s\n","0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789");
94LLOGD("sizeof(__CLogTag__) = %d,strlen(__CLogTag__) = %d",sizeof(__CLogTag__),strlen(__CLogTag__));
95}
(gdb) bt
#0 snprintf (s=0xfffef38c "", n=512, fmt=0xaab3ffb7 "[%lu][%s][%lu]")
at /usr/local/google/buildbot/src/android/ndk-r13-release/ndk/sources/android/support/src/musl-stdio/snprintf.c:5
#1 0xaaad3610 in HttpDataSourceTest_test3_Test::TestBody (this=0xaac4cd18)
at /home/zhixinlyl/xxx/HttpDataSourceTest.cpp:93