X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=kconfig-hardened-check.py;h=fa2452652e70c7b4ff155c1fa9d9a133a3d254fd;hb=4fdae6705916ab457d76d0913d33808d8e22a681;hp=d11d9e73cf99c276d5442ca383aa419f53504ab9;hpb=20a23af2975768d69c564da70da1289dfa4671b4;p=kconfig-hardened-check.git diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index d11d9e7..fa24526 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -451,13 +451,12 @@ def check_config_file(fname): if debug_mode: known_options = [opt.name for opt in checklist] for option, value in parsed_options.items(): - if option not in known_options and not json_mode: + if option not in known_options: print("DEBUG: dunno about option {} ({})".format(option, value)) print_checks() - if __name__ == '__main__': parser = ArgumentParser(description='Checks the hardening options in the Linux kernel config') parser.add_argument('-p', '--print', choices=supported_archs, @@ -467,7 +466,7 @@ if __name__ == '__main__': parser.add_argument('--debug', action='store_true', help='enable internal debug mode') parser.add_argument('--json', action='store_true', - help='print results in json format') + help='print results in JSON format') args = parser.parse_args() if args.debug: