From 7aa1c0b64166a9aee37ecf9982ab2ee53cd66bec Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Mon, 1 Jun 2009 06:21:12 +0000 Subject: [PATCH] - 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 --- reactos/ntoskrnl/include/internal/dbgk.h | 4 ++-- reactos/ntoskrnl/include/internal/io.h | 4 ++-- reactos/ntoskrnl/include/internal/lpc.h | 4 +++- reactos/ntoskrnl/include/internal/ob.h | 2 +- reactos/ntoskrnl/include/internal/ps.h | 6 +++--- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/reactos/ntoskrnl/include/internal/dbgk.h b/reactos/ntoskrnl/include/internal/dbgk.h index 47c28429b86..457fcf0e5bf 100644 --- a/reactos/ntoskrnl/include/internal/dbgk.h +++ b/reactos/ntoskrnl/include/internal/dbgk.h @@ -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 diff --git a/reactos/ntoskrnl/include/internal/io.h b/reactos/ntoskrnl/include/internal/io.h index 3148e7e7b47..fd60823c307 100644 --- a/reactos/ntoskrnl/include/internal/io.h +++ b/reactos/ntoskrnl/include/internal/io.h @@ -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 // diff --git a/reactos/ntoskrnl/include/internal/lpc.h b/reactos/ntoskrnl/include/internal/lpc.h index ad945026067..cffd6f4239c 100644 --- a/reactos/ntoskrnl/include/internal/lpc.h +++ b/reactos/ntoskrnl/include/internal/lpc.h @@ -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 // diff --git a/reactos/ntoskrnl/include/internal/ob.h b/reactos/ntoskrnl/include/internal/ob.h index f055de755fd..892f40528e5 100644 --- a/reactos/ntoskrnl/include/internal/ob.h +++ b/reactos/ntoskrnl/include/internal/ob.h @@ -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 diff --git a/reactos/ntoskrnl/include/internal/ps.h b/reactos/ntoskrnl/include/internal/ps.h index 9fb2e54ae13..dbe7db3031d 100644 --- a/reactos/ntoskrnl/include/internal/ps.h +++ b/reactos/ntoskrnl/include/internal/ps.h @@ -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