#endif
#include "request.h"
-#if SYSCALL_TRACE
-#define DEBUG(str, x...) Debug(str, x)
-#else
-#define DEBUG(...) do{}while(0)
-#endif
-
#define assert(cnd) do{ \
if( !(cnd) ) { \
fprintf(stderr, "%s:%i - assert failed - " #cnd"\n", __FILE__, __LINE__);\
// === Types ===
// === IMPORTS ===
+extern int gbSyscallDebugEnabled;
// === GLOBALS ===
FILE *gaSyscall_LocalFPs[MAX_FPS];
free( req );
free( retPtrs );
- DEBUG(": %i 0x%llx", SyscallID, retValue);
+ if( gbSyscallDebugEnabled ) {
+ SYSTRACE(": %i 0x%llx", SyscallID, retValue);
+ }
return retValue;
}