[freeldr] Add SCSIPORT category to debug messages

Add missing PELOADER entry + fix one debug message

svn path=/trunk/; revision=45994
This commit is contained in:
Hervé Poussineau 2010-03-07 20:12:28 +00:00
parent fa403d4bf1
commit 19b65ab3fe
3 changed files with 14 additions and 1 deletions

View file

@ -173,6 +173,12 @@ VOID DebugPrintHeader(ULONG Mask)
case DPRINT_HWDETECT:
DbgPrint("HWDETECT: ");
break;
case DPRINT_PELOADER:
DbgPrint("PELOADER: ");
break;
case DPRINT_SCSIPORT:
DbgPrint("SCSIPORT: ");
break;
default:
DbgPrint("UNKNOWN: ");
break;
@ -194,6 +200,12 @@ VOID DbgPrintMask(ULONG Mask, char *format, ...)
return;
}
// Disable file/line for scsiport messages
if (Mask & DPRINT_SCSIPORT)
{
DebugStartOfLine = FALSE;
}
// Print the header if we have started a new line
if (DebugStartOfLine)
{

View file

@ -35,6 +35,7 @@
#define DPRINT_HWDETECT 0x00000400 // OR this with DebugPrintMask to enable hardware detection messages
#define DPRINT_WINDOWS 0x00000800 // OR this with DebugPrintMask to enable messages from Windows loader
#define DPRINT_PELOADER 0x00001000 // OR this with DebugPrintMask to enable messages from PE images loader
#define DPRINT_SCSIPORT 0x00002000 // OR this with DebugPrintMask to enable messages from SCSI miniport
extern char* g_file;
extern int g_line;

View file

@ -56,7 +56,7 @@ WinLdrCheckForLoadedDll(IN OUT PLOADER_PARAMETER_BLOCK WinLdrBlock,
PLDR_DATA_TABLE_ENTRY DataTableEntry;
LIST_ENTRY *ModuleEntry;
DPRINTM(DPRINT_PELOADER, "WinLdrCheckForLoadedDll: DllName %X, LoadedEntry: %X\n",
DPRINTM(DPRINT_PELOADER, "WinLdrCheckForLoadedDll: DllName %s, LoadedEntry: %X\n",
DllName, LoadedEntry);
/* Just go through each entry in the LoadOrderList and compare loaded module's