There is no B_PRIdTHREAD

This commit is contained in:
Adrien Destugues 2014-11-17 19:18:55 +01:00
parent 2922c4ab90
commit 1d48729397
1 changed files with 3 additions and 3 deletions

View File

@ -92,13 +92,13 @@ void dbg_printf_end();
#define DEBUG_THREAD find_thread(NULL) #define DEBUG_THREAD find_thread(NULL)
#define DEBUG_CONTEXT(x) { dbg_printf_begin(); __out(DEBUG_APP " [%" \ #define DEBUG_CONTEXT(x) { dbg_printf_begin(); __out(DEBUG_APP " [%" \
B_PRIdBIGTIME ": %5" B_PRIdTHREAD "] ", system_time(), DEBUG_THREAD); \ B_PRIdBIGTIME ": %5" B_PRId32 "] ", system_time(), DEBUG_THREAD); \
x; dbg_printf_end(); } x; dbg_printf_end(); }
#define DEBUG_CONTEXT_FUNCTION(prefix, x) { dbg_printf_begin(); \ #define DEBUG_CONTEXT_FUNCTION(prefix, x) { dbg_printf_begin(); \
__out(DEBUG_APP " [%" B_PRIdBIGTIME ": %5" B_PRIdTHREAD "] %s()" prefix, \ __out(DEBUG_APP " [%" B_PRIdBIGTIME ": %5" B_PRId32 "] %s()" prefix, \
system_time(), DEBUG_THREAD, __FUNCTION__); x; dbg_printf_end(); } system_time(), DEBUG_THREAD, __FUNCTION__); x; dbg_printf_end(); }
#define DEBUG_CONTEXT_LINE(x) { dbg_printf_begin(); __out(DEBUG_APP " [%" \ #define DEBUG_CONTEXT_LINE(x) { dbg_printf_begin(); __out(DEBUG_APP " [%" \
B_PRIdBIGTIME ": %5" B_PRIdTHREAD "] %s():%d: ", system_time(), \ B_PRIdBIGTIME ": %5" B_PRId32 "] %s():%d: ", system_time(), \
DEBUG_THREAD, __FUNCTION__, __LINE__); x; dbg_printf_end(); } DEBUG_THREAD, __FUNCTION__, __LINE__); x; dbg_printf_end(); }
#define TPRINT(x) DEBUG_CONTEXT( __out x ) #define TPRINT(x) DEBUG_CONTEXT( __out x )