mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[0.4.9][WIN32K] Fix DBG_PRINT macro.
picked from 0.4.10-dev-215-g 9d3d5e464d
This commit is contained in:
parent
16f9af86b5
commit
8bfb16ba0f
2 changed files with 7 additions and 6 deletions
|
@ -751,7 +751,7 @@ MsqCreateMessage(LPMSG Msg)
|
|||
VOID FASTCALL
|
||||
MsqDestroyMessage(PUSER_MESSAGE Message)
|
||||
{
|
||||
TRACE("Post Destroy %d\n",PostMsgCount)
|
||||
TRACE("Post Destroy %d\n",PostMsgCount);
|
||||
if (Message->pti == NULL)
|
||||
{
|
||||
ERR("Double Free Message\n");
|
||||
|
@ -1151,7 +1151,7 @@ co_MsqSendMessage(PTHREADINFO ptirec,
|
|||
}
|
||||
|
||||
Timeout.QuadPart = Int32x32To64(-10000,uTimeout); // Pass SMTO test with a TO of 0x80000000.
|
||||
TRACE("Timeout val %lld\n",Timeout.QuadPart)
|
||||
TRACE("Timeout val %lld\n",Timeout.QuadPart);
|
||||
|
||||
Message->Msg.hwnd = Wnd;
|
||||
Message->Msg.message = Msg;
|
||||
|
|
|
@ -134,10 +134,11 @@
|
|||
#define DBG_DISABLE_CHANNEL(ppi,ch,level) ((ppi)->DbgChannelLevel[ch] &= ~level)
|
||||
#define DBG_IS_CHANNEL_ENABLED(ppi,ch,level) (((ppi)->DbgChannelLevel[ch] & level) == level)
|
||||
|
||||
#define DBG_PRINT(ppi,ch,level,fmt, ...) do { \
|
||||
if((level == ERR_LEVEL) || (ppi && DBG_IS_CHANNEL_ENABLED(ppi,ch,level))) \
|
||||
DbgPrint("(%s:%d) " fmt, __RELFILE__, __LINE__, ##__VA_ARGS__); \
|
||||
}while(0);
|
||||
#define DBG_PRINT(ppi,ch,level,fmt, ...) \
|
||||
do { \
|
||||
if ((level == ERR_LEVEL) || (ppi && DBG_IS_CHANNEL_ENABLED(ppi,ch,level))) \
|
||||
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__)
|
||||
#define FIXME(fmt, ...) DBG_PRINT(DBG_GET_PPI, DbgDefaultChannel, FIXME_LEVEL,"fixme: " fmt, ##__VA_ARGS__)
|
||||
|
|
Loading…
Reference in a new issue