Debug mode output should be printed before the final results
authorAlexander Popov <alex.popov@linux.com>
Fri, 20 Jul 2018 16:06:18 +0000 (19:06 +0300)
committerAlexander Popov <alex.popov@linux.com>
Fri, 20 Jul 2018 16:06:18 +0000 (19:06 +0300)
kconfig-hardened-check.py

index 08755c30055da0326c00b537bd4739870b6cea83..07c71d6b60b95d3005ec4e263ae408e7eaf3ebbe 100755 (executable)
@@ -215,13 +215,14 @@ def check_config_file(fname):
                 parsed_options[option] = value
 
         perform_checks(parsed_options)
-        print_check_results()
 
         if debug_mode:
             opt_list_names = [opt[0].name for opt in opt_list]
             for option in filter(lambda option: option not in opt_list_names, parsed_options.keys()):
                 print("DEBUG: dunno about option {} ".format(option))
 
+        print_check_results()
+
 
 if __name__ == '__main__':
     parser = ArgumentParser(description='Checks the hardening options in the Linux kernel config')