#ifdef DEBUG_PROCESS /* Debugging process code is difficult; where to write debug output? */ static void debugPrint(char *format, ...) { FILE *tty = fopen("/dev/tty", "w"); va_list ap; va_start(ap, format); vfprintf(tty, format, ap); va_end(ap); fclose(tty); } #endif /* DEBUG_PROCESS */
2018年10月2日 星期二
不定參數印 log
From the UNIXProcess_md.c
訂閱:
張貼留言 (Atom)
不定參數印 log
From the UNIXProcess_md.c #ifdef DEBUG_PROCESS /* Debugging process code is difficult; where to write debug output? */ static void deb...
-
作為一個 Native 的 Service, 想當然爾是在某個 main_xxx 帶起來的. 讓我們看看 init.rc, 果然找到了服務如下: service surfaceflinger / system / bin / surfaceflinger c...
-
前情提要 上一篇文章我們分析了 Layer class 裡面的 BufferQueue 相關構造, 但是還沒有看到 Layer 究竟會做哪些工作. Layer 生成了 mProducer 跟 mSurfaceFlingerConsumer, 因為 Layer 本身繼承...
沒有留言:
張貼留言