Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kernel-hardening-checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
kernel-hardening-checker
Commits
9851d4f8
Commit
9851d4f8
authored
5 years ago
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the table header
parent
de9bb211
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
kconfig-hardened-check.py
kconfig-hardened-check.py
+5
-4
No files found.
kconfig-hardened-check.py
View file @
9851d4f8
...
...
@@ -444,14 +444,15 @@ def print_checklist(checklist, with_results):
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
:
print
(
'| {}'
.
format
(
'check result'
),
end
=
''
)
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
(
'='
*
sep_line_len
)
for
opt
in
checklist
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment