MemLogLib didn't compile.

update Clover.dsc and refit.inf
This commit is contained in:
jief666 2020-08-25 19:38:50 +03:00
parent c7cc003809
commit 19ce4d6edf
3 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -345,6 +345,8 @@
OpensslLib
NetLib
WaveLib
BaseDebugPrintErrorLevelLib
BaseSerialPortLib
[Guids]
gEfiAcpiTableGuid