From 4d0118c7f4a32db858f4221a91bf67f02c6f1d78 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sat, 21 May 2022 20:49:46 -0300 Subject: [PATCH] Add some logging to CorebootAnalyzer --- biostools/analyzers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/biostools/analyzers.py b/biostools/analyzers.py index bac8847..1f74b2d 100644 --- a/biostools/analyzers.py +++ b/biostools/analyzers.py @@ -1372,6 +1372,8 @@ class CorebootAnalyzer(Analyzer): # Locate and extract version. match = self._version_coreboot_pattern.search(file_data) if match: # coreboot + self.debug_print('coreboot tag:', match.group(0)) + # Reset vendor to coreboot. self.vendor = self.vendor_id @@ -1387,6 +1389,8 @@ class CorebootAnalyzer(Analyzer): # Locate build tag. match = self._string_build_pattern.search(file_data) if match: + self.debug_print('coreboot build': match.group(0)) + # Add build tag to string. if self.string: self.string += '\n' @@ -1396,6 +1400,8 @@ class CorebootAnalyzer(Analyzer): else: match = self._version_linuxbios_pattern.search(file_data) if match: # LinuxBIOS + self.debug_print('LinuxBIOS banner:', match.group(0)) + # Set vendor to LinuxBIOS if required. self.vendor = match.group(1).decode('cp437', 'ignore')