mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
- 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:
parent
6d2f233002
commit
7aa1c0b641
5 changed files with 11 additions and 9 deletions
|
@ -9,7 +9,7 @@
|
||||||
//
|
//
|
||||||
// Define this if you want debugging support
|
// Define this if you want debugging support
|
||||||
//
|
//
|
||||||
#define _DBGK_DEBUG_ 0x01
|
#define _DBGK_DEBUG_ 0x00
|
||||||
|
|
||||||
//
|
//
|
||||||
// These define the Debug Masks Supported
|
// These define the Debug Masks Supported
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define DBGKTRACE(x, ...) DPRINT(__VA_ARGS__);
|
#define DBGKTRACE(x, ...) DPRINT(__VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
//
|
//
|
||||||
// Define this if you want debugging support
|
// Define this if you want debugging support
|
||||||
//
|
//
|
||||||
#define _IO_DEBUG_ 0x01
|
#define _IO_DEBUG_ 0x00
|
||||||
|
|
||||||
//
|
//
|
||||||
// These define the Debug Masks Supported
|
// These define the Debug Masks Supported
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define IOTRACE(x, ...) DPRINT(__VA_ARGS__);
|
#define IOTRACE(x, ...) DPRINT(__VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
//
|
//
|
||||||
// Define this if you want debugging support
|
// Define this if you want debugging support
|
||||||
//
|
//
|
||||||
#define _LPC_DEBUG_ 0x01
|
#define _LPC_DEBUG_ 0x00
|
||||||
|
|
||||||
//
|
//
|
||||||
// These define the Debug Masks Supported
|
// These define the Debug Masks Supported
|
||||||
|
@ -45,6 +45,8 @@
|
||||||
DbgPrint(__VA_ARGS__); \
|
DbgPrint(__VA_ARGS__); \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define LPCTRACE(x, ...) DPRINT(__VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
//
|
//
|
||||||
// Define this if you want debugging support
|
// Define this if you want debugging support
|
||||||
//
|
//
|
||||||
#define _OB_DEBUG_ 0x01
|
#define _OB_DEBUG_ 0x00
|
||||||
|
|
||||||
//
|
//
|
||||||
// These define the Debug Masks Supported
|
// These define the Debug Masks Supported
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
//
|
//
|
||||||
// Define this if you want debugging support
|
// Define this if you want debugging support
|
||||||
//
|
//
|
||||||
#define _PS_DEBUG_ 0x01
|
#define _PS_DEBUG_ 0x00
|
||||||
|
|
||||||
//
|
//
|
||||||
// These define the Debug Masks Supported
|
// These define the Debug Masks Supported
|
||||||
|
@ -52,9 +52,9 @@
|
||||||
"Pointer Count [%p] @%d: %lx\n", \
|
"Pointer Count [%p] @%d: %lx\n", \
|
||||||
x, \
|
x, \
|
||||||
__LINE__, \
|
__LINE__, \
|
||||||
OBJECT_TO_OBJECT_HEADER(x)->PointerCount);
|
OBJECT_TO_OBJECT_HEADER(x)->PointerCount)
|
||||||
#else
|
#else
|
||||||
#define PSTRACE(x, ...) DPRINT(__VA_ARGS__);
|
#define PSTRACE(x, ...) DPRINT(__VA_ARGS__)
|
||||||
#define PSREFTRACE(x)
|
#define PSREFTRACE(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue