Author: sginsberg Date: Fri Sep 25 19:28:05 2015 New Revision: 69355
URL: http://svn.reactos.org/svn/reactos?rev=69355&view=rev Log: [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.
Modified: trunk/reactos/include/reactos/debug.h trunk/reactos/ntoskrnl/kd/kdmain.c trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
Modified: trunk/reactos/include/reactos/debug.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/debug.h?rev... ============================================================================== --- trunk/reactos/include/reactos/debug.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/debug.h [iso-8859-1] Fri Sep 25 19:28:05 2015 @@ -90,7 +90,6 @@ #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 */
Modified: trunk/reactos/ntoskrnl/kd/kdmain.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/kdmain.c?rev=69... ============================================================================== --- trunk/reactos/ntoskrnl/kd/kdmain.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/kd/kdmain.c [iso-8859-1] Fri Sep 25 19:28:05 2015 @@ -377,7 +377,7 @@ 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 @@ 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)
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_cli.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_cli.c?rev... ============================================================================== --- trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] Fri Sep 25 19:28:05 2015 @@ -210,7 +210,7 @@ } ComponentTable[] = { - { "DEFAULT", DPFLTR_DEFAULT_ID }, + { "DEFAULT", MAXULONG }, { "SYSTEM", DPFLTR_SYSTEM_ID }, { "SMSS", DPFLTR_SMSS_ID }, { "SETUP", DPFLTR_SETUP_ID },