From 91cf47fc3c4e51fe671ae5f6228e508422852fc0 Mon Sep 17 00:00:00 2001 From: Sara Batllori Date: Mon, 4 Nov 2024 11:00:33 -0800 Subject: [PATCH] Update base address logging Signed-off-by: Sara Batllori --- chipsec/hal/mmio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chipsec/hal/mmio.py b/chipsec/hal/mmio.py index 9177b572..ab8ae760 100644 --- a/chipsec/hal/mmio.py +++ b/chipsec/hal/mmio.py @@ -215,7 +215,7 @@ class MMIO(hal_base.HALBase): 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: @@ -276,7 +276,7 @@ class MMIO(hal_base.HALBase): 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: