mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
[WIN32K]
- apply r61265 for win32k, for consistency svn path=/trunk/; revision=62839
This commit is contained in:
parent
aa2170e490
commit
cc3fcbf96f
1 changed files with 8 additions and 2 deletions
|
@ -29,6 +29,12 @@
|
||||||
|
|
||||||
#if DBG
|
#if DBG
|
||||||
|
|
||||||
|
#include <builddir.h>
|
||||||
|
|
||||||
|
#if !defined(__RELFILE__)
|
||||||
|
#define __RELFILE__ __FILE__
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
PWCHAR Name;
|
PWCHAR Name;
|
||||||
|
@ -129,7 +135,7 @@
|
||||||
|
|
||||||
#define DBG_PRINT(ppi,ch,level,fmt, ...) do { \
|
#define DBG_PRINT(ppi,ch,level,fmt, ...) do { \
|
||||||
if((level == ERR_LEVEL) || (ppi && DBG_IS_CHANNEL_ENABLED(ppi,ch,level))) \
|
if((level == ERR_LEVEL) || (ppi && DBG_IS_CHANNEL_ENABLED(ppi,ch,level))) \
|
||||||
DbgPrint("(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__); \
|
DbgPrint("(%s:%d) " fmt, __RELFILE__, __LINE__, ##__VA_ARGS__); \
|
||||||
}while(0);
|
}while(0);
|
||||||
|
|
||||||
#define ERR(fmt, ...) DBG_PRINT(DBG_GET_PPI, DbgDefaultChannel, ERR_LEVEL,"err: " fmt, ##__VA_ARGS__)
|
#define ERR(fmt, ...) DBG_PRINT(DBG_GET_PPI, DbgDefaultChannel, ERR_LEVEL,"err: " fmt, ##__VA_ARGS__)
|
||||||
|
@ -147,7 +153,7 @@
|
||||||
#define WARN_PPI(ppi,ch,fmt, ...) DBG_PRINT(ppi, DbgCh##ch, WARN_LEVEL,"warn: " fmt, ##__VA_ARGS__)
|
#define WARN_PPI(ppi,ch,fmt, ...) DBG_PRINT(ppi, DbgCh##ch, WARN_LEVEL,"warn: " fmt, ##__VA_ARGS__)
|
||||||
#define TRACE_PPI(ppi,ch,fmt, ...) DBG_PRINT(ppi, DbgCh##ch, TRACE_LEVEL,"trace: " fmt, ##__VA_ARGS__)
|
#define TRACE_PPI(ppi,ch,fmt, ...) DBG_PRINT(ppi, DbgCh##ch, TRACE_LEVEL,"trace: " fmt, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define STUB DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
|
#define STUB DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__RELFILE__,__LINE__);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define DBG_GET_PPI
|
#define DBG_GET_PPI
|
||||||
|
|
Loading…
Reference in a new issue