Use SerialPortWrite instead of DebugPrint to avoid 256 chars message

length limitation.
This commit is contained in:
jief666 2020-08-25 18:43:53 +03:00
parent 9cb4016bc5
commit b68cd5ec56

View File

@ -10,6 +10,8 @@
#include <Library/UefiBootServicesTableLib.h>
#include <Library/MemLogLib.h>
#include <Library/DebugLib.h>
#include <Library/SerialPortLib.h>
#include <Library/DebugPrintErrorLevelLib.h>
#include <Library/IoLib.h>
#include <Library/PciLib.h>
@ -521,10 +523,18 @@ MemLogfVA (
mMemLog->Callback(DebugMode, LastMessage);
}
//
// Check driver debug mask value and global mask
//
if ((DebugMode & GetDebugPrintErrorLevel ()) == 0) {
return;
}
//
// Write to standard debug device also
//
DebugPrint(DEBUG_INFO, "%a", LastMessage);
// Jief : use SerialPortWrite instead of DebugPrint to avoid 256 chars message length limitation.
SerialPortWrite((UINT8*)LastMessage, len);
// DebugPrint(DEBUG_INFO, "%a", LastMessage);
}
/**