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
97325e59
Commit
97325e59
authored
Mar 31, 2020
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Newline should be printed by print_checklist() that prints the table
parent
52caf95c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
__init__.py
kconfig_hardened_check/__init__.py
+2
-3
No files found.
kconfig_hardened_check/__init__.py
View file @
97325e59
...
...
@@ -102,7 +102,6 @@ class OptCheck:
print
(
'CONFIG_{:<38}|{:^13}|{:^10}|{:^20}'
.
format
(
self
.
name
,
self
.
expected
,
self
.
decision
,
self
.
reason
),
end
=
''
)
if
with_results
:
print
(
'| {}'
.
format
(
self
.
result
),
end
=
''
)
print
()
class
VerCheck
:
...
...
@@ -129,7 +128,6 @@ class VerCheck:
print
(
'{:<91}'
.
format
(
ver_req
),
end
=
''
)
if
with_results
:
print
(
'| {}'
.
format
(
self
.
result
),
end
=
''
)
print
()
class
ComplexOptCheck
:
...
...
@@ -162,8 +160,8 @@ class ComplexOptCheck:
print
(
' {:87}'
.
format
(
'<<< '
+
self
.
__class__
.
__name__
+
' >>>'
),
end
=
''
)
if
with_results
:
print
(
'| {}'
.
format
(
self
.
result
),
end
=
''
)
print
()
for
o
in
self
.
opts
:
print
()
o
.
table_print
(
with_results
)
else
:
o
=
self
.
opts
[
0
]
...
...
@@ -508,6 +506,7 @@ def print_checklist(checklist, with_results):
# table contents
for
opt
in
checklist
:
opt
.
table_print
(
with_results
)
print
()
if
debug_mode
:
print
(
'-'
*
sep_line_len
)
print
()
...
...
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