From: Alexander Popov Date: Fri, 20 Jul 2018 16:06:18 +0000 (+0300) Subject: Debug mode output should be printed before the final results X-Git-Tag: v0.5.2~88^2~6 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8cfef01837005319f451d14d7562b61518815fba;p=kconfig-hardened-check.git Debug mode output should be printed before the final results --- 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')