From 8cfef01837005319f451d14d7562b61518815fba Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 20 Jul 2018 19:06:18 +0300 Subject: [PATCH] Debug mode output should be printed before the final results --- kconfig-hardened-check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index 08755c3..07c71d6 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -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') -- 2.31.1