- Disable debugging traces for dbgk/io/lpc/ob/ps by default, removing mostly unused debug code from frequently used routines and decreasing image size by about 32 KB. Also fix the way some macros are defined so we don't end up with double semicolons after the preprocessor.

svn path=/trunk/; revision=41233
This commit is contained in:
Stefan Ginsberg 2009-06-01 06:21:12 +00:00
parent 6d2f233002
commit 7aa1c0b641
5 changed files with 11 additions and 9 deletions

View file

@ -9,7 +9,7 @@
//
// Define this if you want debugging support
//
#define _DBGK_DEBUG_ 0x01
#define _DBGK_DEBUG_ 0x00
//
// These define the Debug Masks Supported
@ -43,7 +43,7 @@
}
#endif
#else
#define DBGKTRACE(x, ...) DPRINT(__VA_ARGS__);
#define DBGKTRACE(x, ...) DPRINT(__VA_ARGS__)
#endif
VOID

View file

@ -10,7 +10,7 @@
//
// Define this if you want debugging support
//
#define _IO_DEBUG_ 0x01
#define _IO_DEBUG_ 0x00
//
// These define the Debug Masks Supported
@ -43,7 +43,7 @@
}
#endif
#else
#define IOTRACE(x, ...) DPRINT(__VA_ARGS__);
#define IOTRACE(x, ...) DPRINT(__VA_ARGS__)
#endif
//

View file

@ -9,7 +9,7 @@
//
// Define this if you want debugging support
//
#define _LPC_DEBUG_ 0x01
#define _LPC_DEBUG_ 0x00
//
// These define the Debug Masks Supported
@ -45,6 +45,8 @@
DbgPrint(__VA_ARGS__); \
}
#endif
#else
#define LPCTRACE(x, ...) DPRINT(__VA_ARGS__)
#endif
//

View file

@ -9,7 +9,7 @@
//
// Define this if you want debugging support
//
#define _OB_DEBUG_ 0x01
#define _OB_DEBUG_ 0x00
//
// These define the Debug Masks Supported

View file

@ -9,7 +9,7 @@
//
// Define this if you want debugging support
//
#define _PS_DEBUG_ 0x01
#define _PS_DEBUG_ 0x00
//
// These define the Debug Masks Supported
@ -52,9 +52,9 @@
"Pointer Count [%p] @%d: %lx\n", \
x, \
__LINE__, \
OBJECT_TO_OBJECT_HEADER(x)->PointerCount);
OBJECT_TO_OBJECT_HEADER(x)->PointerCount)
#else
#define PSTRACE(x, ...) DPRINT(__VA_ARGS__);
#define PSTRACE(x, ...) DPRINT(__VA_ARGS__)
#define PSREFTRACE(x)
#endif