mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +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>
|
#include <debug.h>
|
||||||
|
|
||||||
#if DBG
|
#if DBG
|
||||||
static ULONG gDebugChannel = kernel32file;
|
DEBUG_CHANNEL(kernel32file);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
|
@ -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 ****************************************************************/
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 **********************************************************/
|
||||||
|
|
|
@ -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 ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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};
|
||||||
|
|
||||||
|
|
|
@ -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 *****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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 ******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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 ********************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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 ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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 ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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 ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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 *****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 ******************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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 ****************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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__)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue