Print driver names on initialization

svn path=/trunk/; revision=1512
This commit is contained in:
Eric Kohl 2001-01-14 15:30:47 +00:00
parent 7efa62275f
commit eaeab91ab2

View file

@ -1,4 +1,4 @@
/* $Id: main.c,v 1.72 2001/01/12 21:00:07 dwelch Exp $ /* $Id: main.c,v 1.73 2001/01/14 15:30:47 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -434,6 +434,7 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
ULONG i; ULONG i;
ULONG last_kernel_address; ULONG last_kernel_address;
ULONG start; ULONG start;
PCHAR name;
/* /*
* Copy the parameters to a local buffer because lowmem will go away * Copy the parameters to a local buffer because lowmem will go away
@ -534,6 +535,10 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
* Initalize services loaded at boot time * Initalize services loaded at boot time
*/ */
DPRINT1("%d files loaded\n",KeLoaderBlock.ModsCount); DPRINT1("%d files loaded\n",KeLoaderBlock.ModsCount);
for (i=0; i < KeLoaderBlock.ModsCount; i++)
{
DPRINT1("module: %s\n", KeLoaderModules[i].String);
}
/* Pass 1: load registry chunks passed in */ /* Pass 1: load registry chunks passed in */
for (i = 1; i < KeLoaderBlock.ModsCount; i++) for (i = 1; i < KeLoaderBlock.ModsCount; i++)
@ -550,9 +555,10 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
for (i=1; i < KeLoaderBlock.ModsCount; i++) for (i=1; i < KeLoaderBlock.ModsCount; i++)
{ {
start = KeLoaderModules[i].ModStart; start = KeLoaderModules[i].ModStart;
name = (PCHAR)KeLoaderModules[i].String;
if (strcmp ((PCHAR) start, "REGEDIT4") != 0) if (strcmp ((PCHAR) start, "REGEDIT4") != 0)
{ {
DPRINT1("process module at %08lx\n", start); DPRINT1("process module '%s' at %08lx\n", name, start);
LdrProcessDriver((PVOID)start); LdrProcessDriver((PVOID)start);
} }
} }