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 (from parent 1:
fa737c9
)
Update the column width
author
Alexander Popov
<alex.popov@linux.com>
Thu, 28 Nov 2019 16:56:13 +0000
(19:56 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Thu, 28 Nov 2019 16:56:13 +0000
(19:56 +0300)
kconfig-hardened-check.py
patch
|
blob
|
history
diff --git
a/kconfig-hardened-check.py
b/kconfig-hardened-check.py
index 873506adc953ff4a4e5d1901566a46eace598cec..90e61e70056a81b9e8287bf176049eb7af86d789 100755
(executable)
--- a/
kconfig-hardened-check.py
+++ b/
kconfig-hardened-check.py
@@
-402,8
+402,8
@@
def print_checklist(checklist, with_results):
return
# header
return
# header
- print('{:^4
0
}|{:^13}|{:^10}|{:^20}'.format('option name', 'desired val', 'decision', 'reason'), end='')
- sep_line_len =
86
+ print('{:^4
5
}|{:^13}|{:^10}|{:^20}'.format('option name', 'desired val', 'decision', 'reason'), end='')
+ sep_line_len =
91
if with_results:
print('||{:^28}'.format('check result'), end='')
sep_line_len += 30
if with_results:
print('||{:^28}'.format('check result'), end='')
sep_line_len += 30
@@
-412,7
+412,7
@@
def print_checklist(checklist, with_results):
print('=' * sep_line_len)
for opt in checklist:
print('=' * sep_line_len)
for opt in checklist:
- print('CONFIG_{:<3
3
}|{:^13}|{:^10}|{:^20}'.format(opt.name, opt.expected, opt.decision, opt.reason), end='')
+ print('CONFIG_{:<3
8
}|{:^13}|{:^10}|{:^20}'.format(opt.name, opt.expected, opt.decision, opt.reason), end='')
if with_results:
print('||{:^28}'.format(opt.result), end='')
print()
if with_results:
print('||{:^28}'.format(opt.result), end='')
print()