X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=kconfig-hardened-check.py;h=a7a7d9cf05df6b867ed03c1c5052590a3e8460dd;hb=refs%2Fpull%2F22%2Fhead;hp=7ec7a4b58c641e3f92c22c9c439ae8eb372f74e8;hpb=3dc3f6e9e67e5206575acb5009f472cff780328d;p=kconfig-hardened-check.git diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index 7ec7a4b..a7a7d9c 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -40,6 +40,7 @@ import sys from argparse import ArgumentParser from collections import OrderedDict import re +import json debug_mode = False # set it to True to print the unknown options from the config json_mode = False # if True, print results in JSON format @@ -381,7 +382,7 @@ def print_checklist(checklist, with_results): if with_results: opt.append(o.result) opts.append(opt) - print(opts) + print(json.dumps(opts)) return # header