mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 00:40:31 +00:00
[KDBG] Let's try to have one single version of DPFLTR_DEFAULT_ID shall we -- 101 as part of DPFLTR_TYPE enum is correct, 0xFFFFFFFF as an incorrect define for the "internal" default ID is wrong.
svn path=/trunk/; revision=69355
This commit is contained in:
parent
0ad0cb4df8
commit
d8105a4366
3 changed files with 3 additions and 4 deletions
|
@ -90,7 +90,6 @@ RtlAssert(
|
|||
#define __NOTICE(level, fmt, ...) DbgPrint(#level ": %s at %s:%d " fmt, __FUNCTION__, __RELFILE__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
/* Print stuff only on Debug Builds*/
|
||||
#define DPFLTR_DEFAULT_ID -1
|
||||
#if DBG
|
||||
|
||||
/* These are always printed */
|
||||
|
|
|
@ -377,7 +377,7 @@ NtQueryDebugFilterState(IN ULONG ComponentId,
|
|||
Level = 1 << Level;
|
||||
|
||||
/* Check if it is not the default component */
|
||||
if (ComponentId != DPFLTR_DEFAULT_ID)
|
||||
if (ComponentId != MAXULONG)
|
||||
{
|
||||
/* No, search for an existing entry in the table */
|
||||
for (i = 0; i < KdComponentTableEntries; i++)
|
||||
|
@ -409,7 +409,7 @@ NtSetDebugFilterState(IN ULONG ComponentId,
|
|||
Level &= ~DPFLTR_MASK;
|
||||
|
||||
/* Check if it is the default component */
|
||||
if (ComponentId == DPFLTR_DEFAULT_ID)
|
||||
if (ComponentId == MAXULONG)
|
||||
{
|
||||
/* Yes, modify the default mask */
|
||||
if (State)
|
||||
|
|
|
@ -210,7 +210,7 @@ KdbpGetComponentId(
|
|||
}
|
||||
ComponentTable[] =
|
||||
{
|
||||
{ "DEFAULT", DPFLTR_DEFAULT_ID },
|
||||
{ "DEFAULT", MAXULONG },
|
||||
{ "SYSTEM", DPFLTR_SYSTEM_ID },
|
||||
{ "SMSS", DPFLTR_SMSS_ID },
|
||||
{ "SETUP", DPFLTR_SETUP_ID },
|
||||
|
|
Loading…
Reference in a new issue