[NTOS:KDBG] Minor code style fix.

This commit is contained in:
Hermès Bélusca-Maïto 2020-07-18 17:39:42 +02:00
parent 0f8306b37f
commit b2eaf90557

View file

@ -641,7 +641,7 @@ KdbpGetComponentId(
{
ULONG i;
for (i = 0; i < sizeof(ComponentTable) / sizeof(ComponentTable[0]); i++)
for (i = 0; i < RTL_NUMBER_OF(ComponentTable); i++)
{
if (_stricmp(ComponentName, ComponentTable[i].Name) == 0)
{
@ -689,7 +689,7 @@ KdbpCmdFilter(
KdbpPrint("The list of debug filter components currently available on your system is:\n\n");
KdbpPrint(" Component Name Component ID\n"
"================ ==============\n");
for (i = 0; i < sizeof(ComponentTable) / sizeof(ComponentTable[0]); i++)
for (i = 0; i < RTL_NUMBER_OF(ComponentTable); i++)
{
KdbpPrint("%16s 0x%08lx\n", ComponentTable[i].Name, ComponentTable[i].Id);
}
@ -704,7 +704,7 @@ KdbpCmdFilter(
if (p > opt)
{
for (j = 0; j < sizeof(debug_classes) / sizeof(debug_classes[0]); j++)
for (j = 0; j < RTL_NUMBER_OF(debug_classes); j++)
{
SIZE_T len = strlen(debug_classes[j].Name);
if (len != (p - opt))
@ -718,7 +718,7 @@ KdbpCmdFilter(
break;
}
}
if (j == sizeof(debug_classes) / sizeof(debug_classes[0]))
if (j == RTL_NUMBER_OF(debug_classes))
{
Level = strtoul(opt, &pend, 0);
if (pend != p)