Skip to content

Commit

Permalink
UserlandFS: 64-bit fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkomandy committed Nov 17, 2014
1 parent f0d46bd commit 5b1f411
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions headers/private/userlandfs/shared/Debug.h
Expand Up @@ -91,9 +91,14 @@ void dbg_printf_end();
#endif

#define DEBUG_THREAD find_thread(NULL)
#define DEBUG_CONTEXT(x) { dbg_printf_begin(); __out(DEBUG_APP " [%Ld: %5ld] ", system_time(), DEBUG_THREAD); x; dbg_printf_end(); }
#define DEBUG_CONTEXT_FUNCTION(prefix, x) { dbg_printf_begin(); __out(DEBUG_APP " [%Ld: %5ld] %s()" prefix, system_time(), DEBUG_THREAD, __FUNCTION__); x; dbg_printf_end(); }
#define DEBUG_CONTEXT_LINE(x) { dbg_printf_begin(); __out(DEBUG_APP " [%Ld: %5ld] %s():%d: ", system_time(), DEBUG_THREAD, __FUNCTION__, __LINE__); x; dbg_printf_end(); }
#define DEBUG_CONTEXT(x) { dbg_printf_begin(); __out(DEBUG_APP " [%" \
B_PRIdBIGTIME ": %5ld] ", system_time(), DEBUG_THREAD); x; dbg_printf_end(); }
#define DEBUG_CONTEXT_FUNCTION(prefix, x) { dbg_printf_begin(); \
__out(DEBUG_APP " [%" B_PRIdBIGTIME ": %5ld] %s()" prefix, system_time(), \
DEBUG_THREAD, __FUNCTION__); x; dbg_printf_end(); }
#define DEBUG_CONTEXT_LINE(x) { dbg_printf_begin(); __out(DEBUG_APP " [%" \
B_PRIdBIGTIME ": %5ld] %s():%d: ", system_time(), DEBUG_THREAD, \
__FUNCTION__, __LINE__); x; dbg_printf_end(); }

#define TPRINT(x) DEBUG_CONTEXT( __out x )
#define TREPORT_ERROR(status) DEBUG_CONTEXT_LINE( __out("%s\n", strerror(status)) )
Expand Down

0 comments on commit 5b1f411

Please sign in to comment.