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:
de9bb21
)
Improve the table header
author
Alexander Popov
<alex.popov@linux.com>
Fri, 6 Mar 2020 21:31:50 +0000
(
00:31
+0300)
committer
Alexander Popov
<alex.popov@linux.com>
Fri, 6 Mar 2020 21:31:50 +0000
(
00:31
+0300)
kconfig-hardened-check.py
patch
|
blob
|
history
diff --git
a/kconfig-hardened-check.py
b/kconfig-hardened-check.py
index 4f01f5793468a1d4dd440117b9552d3baef9c171..85445b5d2c977a9bd0d163137d26df2edc157499 100755
(executable)
--- a/
kconfig-hardened-check.py
+++ b/
kconfig-hardened-check.py
@@
-444,14
+444,15
@@
def print_checklist(checklist, with_results):
print(json.dumps(opts))
return
print(json.dumps(opts))
return
- # header
- print('{:^45}|{:^13}|{:^10}|{:^20}'.format('option name', 'desired val', 'decision', 'reason'), end='')
+ # table header
sep_line_len = 91
if with_results:
sep_line_len = 91
if with_results:
- print('| {}'.format('check result'), end='')
sep_line_len += 30
sep_line_len += 30
+ print('=' * sep_line_len)
+ print('{:^45}|{:^13}|{:^10}|{:^20}'.format('option name', 'desired val', 'decision', 'reason'), end='')
+ if with_results:
+ print('| {}'.format('check result'), end='')
print()
print()
-
print('=' * sep_line_len)
for opt in checklist:
print('=' * sep_line_len)
for opt in checklist: