[KERNEL32]

- Sylvain Petreolle: Fix debug channels for release builds.

svn path=/trunk/; revision=48845
This commit is contained in:
Amine Khaldi 2010-09-21 17:14:22 +00:00
parent b60395bc25
commit d09d10d12d
23 changed files with 29 additions and 22 deletions

View file

@ -17,7 +17,7 @@
#include <debug.h> #include <debug.h>
#if DBG #if DBG
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
#endif #endif
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -17,7 +17,7 @@
#include <debug.h> #include <debug.h>
#if DBG #if DBG
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
#endif #endif
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -19,7 +19,7 @@
#include <debug.h> #include <debug.h>
#if DBG #if DBG
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
#endif #endif
#define SYMLINK_FLAG_RELATIVE 1 #define SYMLINK_FLAG_RELATIVE 1

View file

@ -21,7 +21,7 @@
#include <debug.h> #include <debug.h>
#if DBG #if DBG
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
#endif #endif
/* GLOBAL VARIABLES **********************************************************/ /* GLOBAL VARIABLES **********************************************************/

View file

@ -14,7 +14,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <reactos/debug.h> #include <reactos/debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -18,7 +18,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
UNICODE_STRING DllDirectory = {0, 0, NULL}; UNICODE_STRING DllDirectory = {0, 0, NULL};

View file

@ -14,7 +14,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/

View file

@ -15,7 +15,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* GLOBALS ******************************************************************/ /* GLOBALS ******************************************************************/

View file

@ -14,7 +14,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* TYPES ********************************************************************/ /* TYPES ********************************************************************/

View file

@ -14,7 +14,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -16,7 +16,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -13,7 +13,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -19,7 +19,7 @@
#include <malloc.h> #include <malloc.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* GLOBALS *****************************************************************/ /* GLOBALS *****************************************************************/

View file

@ -12,7 +12,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
//#define USING_PROPER_NPFS_WAIT_SEMANTICS //#define USING_PROPER_NPFS_WAIT_SEMANTICS

View file

@ -13,7 +13,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* GLOBALS ******************************************************************/ /* GLOBALS ******************************************************************/

View file

@ -14,7 +14,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/

View file

@ -22,7 +22,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32file; DEBUG_CHANNEL(kernel32file);
#define MAX_DOS_DRIVES 26 #define MAX_DOS_DRIVES 26

View file

@ -9,6 +9,13 @@
#define resource 203 #define resource 203
#define kernel32session 204 #define kernel32session 204
#if DBG
#define DEBUG_CHANNEL(ch) static ULONG gDebugChannel = ch;
#else
#define DEBUG_CHANNEL(ch)
#endif
#define TRACE(fmt, ...) TRACE__(gDebugChannel, fmt, ##__VA_ARGS__) #define TRACE(fmt, ...) TRACE__(gDebugChannel, fmt, ##__VA_ARGS__)
#define WARN(fmt, ...) WARN__(gDebugChannel, fmt, ##__VA_ARGS__) #define WARN(fmt, ...) WARN__(gDebugChannel, fmt, ##__VA_ARGS__)
#define FIXME(fmt, ...) WARN__(gDebugChannel, fmt,## __VA_ARGS__) #define FIXME(fmt, ...) WARN__(gDebugChannel, fmt,## __VA_ARGS__)

View file

@ -15,7 +15,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = actctx; DEBUG_CHANNEL(actctx);
#define ACTCTX_FAKE_HANDLE ((HANDLE) 0xf00baa) #define ACTCTX_FAKE_HANDLE ((HANDLE) 0xf00baa)

View file

@ -22,7 +22,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = resource; DEBUG_CHANNEL(resource);
struct format_args struct format_args
{ {

View file

@ -32,7 +32,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = resource; DEBUG_CHANNEL(resource);
#define DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */ #define DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */
#define TIME_TIMEVARSONLY 0x0200 /* only time stuff: hHmst */ #define TIME_TIMEVARSONLY 0x0200 /* only time stuff: hHmst */

View file

@ -11,7 +11,7 @@
#include <reactos/buildno.h> #include <reactos/buildno.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
static ULONG gDebugChannel = kernel32ver; DEBUG_CHANNEL(kernel32ver);
#define UNICODIZE1(x) L##x #define UNICODIZE1(x) L##x
#define UNICODIZE(x) UNICODIZE1(x) #define UNICODIZE(x) UNICODIZE1(x)

View file

@ -11,7 +11,7 @@
#include <k32.h> #include <k32.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
//static ULONG gDebugChannel = kernel32session; not actually used //DEBUG_CHANNEL(kernel32session); not actually used
DWORD ActiveConsoleSessionId = 0; DWORD ActiveConsoleSessionId = 0;