Skip to content

Commit

Permalink
Update base address logging
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
  • Loading branch information
Sae86 authored and npmitche committed Nov 6, 2024
1 parent 17f3a50 commit 91cf47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chipsec/hal/mmio.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def get_MMIO_BAR_base_address(self, bar_name: str, bus: Optional[int] = None) ->
self.logger.log_hal(f'[mmio] Unable to determine MMIO Base. Using Base = 0x{base:X}')
is_ba_invalid = base == 0 or self.cs.register.is_all_ffs(bar_reg, bar_value)
if is_ba_invalid:
self.logger.log_warning(f'[mmio] BAR value for {bar_name} is 0x{bar_value:016X}')
self.logger.log_hal(f'[mmio] BAR value for {bar_name} is 0x{bar_value:016X}')
try:
reg_mask = self.cs.register.get_field_mask(bar_reg, base_field, preserve)
except CSReadError:
Expand Down Expand Up @@ -276,7 +276,7 @@ def get_MMIO_BAR_base_address(self, bar_name: str, bus: Optional[int] = None) ->
self.logger.log_hal(f'[mmio] {bar_name}: 0x{base:016X} (size = 0x{size:X})')
if is_ba_invalid:
msg = f'[mmio] Base address was determined to be invalid: 0x{base:016X}'
self.logger.log_hal(msg)
self.logger.log_warning(msg)
raise CSReadError(msg)

if self.cache_bar_addresses_resolution:
Expand Down

0 comments on commit 91cf47f

Please sign in to comment.