mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +00:00
[KERNEL32]
- Sylvain Petreolle: Fix debug channels for release builds. svn path=/trunk/; revision=48845
This commit is contained in:
parent
b60395bc25
commit
d09d10d12d
23 changed files with 29 additions and 22 deletions
|
@ -17,7 +17,7 @@
|
|||
#include <debug.h>
|
||||
|
||||
#if DBG
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
#endif
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <debug.h>
|
||||
|
||||
#if DBG
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
#endif
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <debug.h>
|
||||
|
||||
#if DBG
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
#endif
|
||||
|
||||
#define SYMLINK_FLAG_RELATIVE 1
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <debug.h>
|
||||
|
||||
#if DBG
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
#endif
|
||||
|
||||
/* GLOBAL VARIABLES **********************************************************/
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <reactos/debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
UNICODE_STRING DllDirectory = {0, 0, NULL};
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* TYPES ********************************************************************/
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <malloc.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* GLOBALS *****************************************************************/
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
//#define USING_PROPER_NPFS_WAIT_SEMANTICS
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32file;
|
||||
DEBUG_CHANNEL(kernel32file);
|
||||
|
||||
#define MAX_DOS_DRIVES 26
|
||||
|
||||
|
|
|
@ -9,6 +9,13 @@
|
|||
#define resource 203
|
||||
#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 WARN(fmt, ...) WARN__(gDebugChannel, fmt, ##__VA_ARGS__)
|
||||
#define FIXME(fmt, ...) WARN__(gDebugChannel, fmt,## __VA_ARGS__)
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = actctx;
|
||||
DEBUG_CHANNEL(actctx);
|
||||
|
||||
#define ACTCTX_FAKE_HANDLE ((HANDLE) 0xf00baa)
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = resource;
|
||||
DEBUG_CHANNEL(resource);
|
||||
|
||||
struct format_args
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = resource;
|
||||
DEBUG_CHANNEL(resource);
|
||||
|
||||
#define DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */
|
||||
#define TIME_TIMEVARSONLY 0x0200 /* only time stuff: hHmst */
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <reactos/buildno.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
static ULONG gDebugChannel = kernel32ver;
|
||||
DEBUG_CHANNEL(kernel32ver);
|
||||
|
||||
#define UNICODIZE1(x) L##x
|
||||
#define UNICODIZE(x) UNICODIZE1(x)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <k32.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
//static ULONG gDebugChannel = kernel32session; not actually used
|
||||
//DEBUG_CHANNEL(kernel32session); not actually used
|
||||
|
||||
DWORD ActiveConsoleSessionId = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue