Author: sginsberg
Date: Mon Jun 1 10:21:12 2009
New Revision: 41233
URL:
http://svn.reactos.org/svn/reactos?rev=41233&view=rev
Log:
- 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.
Modified:
trunk/reactos/ntoskrnl/include/internal/dbgk.h
trunk/reactos/ntoskrnl/include/internal/io.h
trunk/reactos/ntoskrnl/include/internal/lpc.h
trunk/reactos/ntoskrnl/include/internal/ob.h
trunk/reactos/ntoskrnl/include/internal/ps.h
Modified: trunk/reactos/ntoskrnl/include/internal/dbgk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/dbgk.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/dbgk.h [iso-8859-1] Mon Jun 1 10:21:12 2009
@@ -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
Modified: trunk/reactos/ntoskrnl/include/internal/io.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/io.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/io.h [iso-8859-1] Mon Jun 1 10:21:12 2009
@@ -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
//
Modified: trunk/reactos/ntoskrnl/include/internal/lpc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/lpc.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/lpc.h [iso-8859-1] Mon Jun 1 10:21:12 2009
@@ -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
//
Modified: trunk/reactos/ntoskrnl/include/internal/ob.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ob.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/ob.h [iso-8859-1] Mon Jun 1 10:21:12 2009
@@ -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
Modified: trunk/reactos/ntoskrnl/include/internal/ps.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ps.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/ps.h [iso-8859-1] Mon Jun 1 10:21:12 2009
@@ -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