#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...
-
1. SikuliX 本體下載 首先你必須要下載SikuliX (廢話) (撰寫本文時, SikuliX版本為 sikulixsetup-1.1.2.jar) http://sikulix.com/quickstart/ 由於SikuliX IDE是運行在Ja...
-
作為一個 Native 的 Service, 想當然爾是在某個 main_xxx 帶起來的. 讓我們看看 init.rc, 果然找到了服務如下: service surfaceflinger / system / bin / surfaceflinger c...
沒有留言:
張貼留言