projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dc3f6e
)
#20 fix: use right quotes in json output
22/head
author
Andrew Petelin
<adrianopol@gmail.com>
Sun, 7 Jul 2019 19:24:41 +0000
(22:24 +0300)
committer
Andrew Petelin
<adrianopol@gmail.com>
Sun, 7 Jul 2019 19:24:41 +0000
(22:24 +0300)
kconfig-hardened-check.py
patch
|
blob
|
history
diff --git
a/kconfig-hardened-check.py
b/kconfig-hardened-check.py
index 7ec7a4b58c641e3f92c22c9c439ae8eb372f74e8..a7a7d9cf05df6b867ed03c1c5052590a3e8460dd 100755
(executable)
--- 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