Author: khornicek
Date: Sun Apr 20 13:29:53 2014
New Revision: 62839
URL:
http://svn.reactos.org/svn/reactos?rev=62839&view=rev
Log:
[WIN32K]
- apply r61265 for win32k, for consistency
Modified:
trunk/reactos/win32ss/user/ntuser/win32kdebug.h
Modified: trunk/reactos/win32ss/user/ntuser/win32kdebug.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/win32k…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/win32kdebug.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/win32kdebug.h [iso-8859-1] Sun Apr 20 13:29:53 2014
@@ -28,6 +28,12 @@
*/
#if DBG
+
+ #include <builddir.h>
+
+ #if !defined(__RELFILE__)
+ #define __RELFILE__ __FILE__
+ #endif
typedef struct
{
@@ -129,7 +135,7 @@
#define DBG_PRINT(ppi,ch,level,fmt, ...) do { \
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);
#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 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
#define DBG_GET_PPI