set log position

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2020-11-22 14:32:03 +03:00
parent bf6376277c
commit 569a2fbe94
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit b4705b2b9affc9a5a8c80daad6638b85e5c1b11d
Subproject commit df86f4960d56e255235c56dbe4e32f3e3a966dfb

View File

@ -188,7 +188,8 @@ static UINTN GetDebugLogFile()
// }
if (!EFI_ERROR(Status)) {
Status = LogFile->SetPosition(LogFile, 0xFFFFFFFFFFFFFFFFULL);
EFI_FILE_INFO *Info = EfiLibFileInfo(LogFile);
Status = LogFile->SetPosition(LogFile, Info->FileSize); //0xFFFFFFFFFFFFFFFFULL);
if ( EFI_ERROR (Status) ) {
DGB_nbCallback("GetDebugLogFile() -> Cannot set log position to 0xFFFFFFFFFFFFFFFFULL : %s\n", efiStrError(Status));
LogFile->Close(LogFile);