mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
MemLogLib didn't compile.
update Clover.dsc and refit.inf
This commit is contained in:
parent
c7cc003809
commit
19ce4d6edf
@ -144,6 +144,13 @@
|
||||
# To save size, use NULL library for DebugLib and ReportStatusCodeLib.
|
||||
# If need status code output, do library instance overriden as below DxeMain.inf does
|
||||
#
|
||||
|
||||
!ifdef DEBUG_ON_SERIAL_PORT
|
||||
BaseSerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
|
||||
!else
|
||||
BaseSerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
|
||||
!endif
|
||||
BaseDebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
||||
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
||||
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
||||
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
||||
|
@ -514,7 +514,8 @@ MemLogfVA (
|
||||
Marker);
|
||||
// mMemLog->Cursor += DataWritten;
|
||||
// vsnprintf doesn't return the number of char printed. TODO will do it soon in printf_lite
|
||||
mMemLog->Cursor += AsciiStrLen(mMemLog->Cursor);
|
||||
UINTN LastMessageLen = AsciiStrLen(mMemLog->Cursor);
|
||||
mMemLog->Cursor += LastMessageLen;
|
||||
|
||||
//
|
||||
// Pass this last message to callback if defined
|
||||
@ -533,7 +534,7 @@ MemLogfVA (
|
||||
// Write to standard debug device also
|
||||
//
|
||||
// Jief : use SerialPortWrite instead of DebugPrint to avoid 256 chars message length limitation.
|
||||
SerialPortWrite((UINT8*)LastMessage, len);
|
||||
SerialPortWrite((UINT8*)LastMessage, LastMessageLen);
|
||||
// DebugPrint(DEBUG_INFO, "%a", LastMessage);
|
||||
}
|
||||
|
||||
|
@ -345,6 +345,8 @@
|
||||
OpensslLib
|
||||
NetLib
|
||||
WaveLib
|
||||
BaseDebugPrintErrorLevelLib
|
||||
BaseSerialPortLib
|
||||
|
||||
[Guids]
|
||||
gEfiAcpiTableGuid
|
||||
|
Loading…
Reference in New Issue
Block a user