LDNetDiagnoService_Android icon indicating copy to clipboard operation
LDNetDiagnoService_Android copied to clipboard

重载 printf 导致输出文本格式化异常

Open darktiny opened this issue 9 years ago • 0 comments

tracepath.c 中重载了 printf,但在某些情况下,该函数不会被调用,例如 printf("\n")

这似乎和 GCCLLVMprintf 的优化有关

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

darktiny avatar Jan 19 '16 08:01 darktiny