LDNetDiagnoService_Android
LDNetDiagnoService_Android copied to clipboard
重载 printf 导致输出文本格式化异常
tracepath.c
中重载了 printf,但在某些情况下,该函数不会被调用,例如 printf("\n")
这似乎和 GCC 与 LLVM 对 printf 的优化有关
http://www.ciselant.de/projects/gcc_printf/gcc_printf.html https://groups.google.com/forum/#!topic/llvm-dev/slE2q7yoN-4 https://gcc.gnu.org/ml/gcc-help/2009-10/msg00362.html