Skip to content

Commit

Permalink
Fix wrong mMaxAddress calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
os-d committed May 7, 2024
1 parent 8d7bae0 commit ea44732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ DxeCoreAdvancedLoggerLibConstructor (
LoggerInfo->HdwPortInitialized = TRUE;
}

mMaxAddress = TOTAL_LOG_SIZE_WITH_ALI (LoggerInfo);
mMaxAddress = LOG_MAX_ADDRESS (LoggerInfo);
mBufferSize = LoggerInfo->LogBufferSize;
} else {
DEBUG ((DEBUG_ERROR, "%a: Error allocating Advanced Logger Buffer\n", __FUNCTION__));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ InitializeInMemoryLog (
if (!EFI_ERROR (Status)) {
mLoggerInfo = LOGGER_INFO_FROM_PROTOCOL (LoggerProtocol);
if (mLoggerInfo != NULL) {
mMaxAddress = TOTAL_LOG_SIZE_WITH_ALI (mLoggerInfo);
mMaxAddress = LOG_MAX_ADDRESS (mLoggerInfo);
mBufferSize = mLoggerInfo->LogBufferSize;
}

Expand Down

0 comments on commit ea44732

Please sign in to comment.