mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
Use SerialPortWrite instead of DebugPrint to avoid 256 chars message
length limitation.
This commit is contained in:
parent
9cb4016bc5
commit
b68cd5ec56
@ -10,6 +10,8 @@
|
|||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/MemLogLib.h>
|
#include <Library/MemLogLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
#include <Library/SerialPortLib.h>
|
||||||
|
#include <Library/DebugPrintErrorLevelLib.h>
|
||||||
|
|
||||||
#include <Library/IoLib.h>
|
#include <Library/IoLib.h>
|
||||||
#include <Library/PciLib.h>
|
#include <Library/PciLib.h>
|
||||||
@ -521,10 +523,18 @@ MemLogfVA (
|
|||||||
mMemLog->Callback(DebugMode, LastMessage);
|
mMemLog->Callback(DebugMode, LastMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Check driver debug mask value and global mask
|
||||||
|
//
|
||||||
|
if ((DebugMode & GetDebugPrintErrorLevel ()) == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
//
|
//
|
||||||
// Write to standard debug device also
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user