Add a hint about gcc plugins support
[kconfig-hardened-check.git] / kconfig-hardened-check.py
index e5867225650ecbebe95cd218084e93181f09c128..791a2f8b6c921e9492f1ffaa36ee6b9499dccaec 100755 (executable)
@@ -216,10 +216,10 @@ def print_checklist():
     print('[+] Printing kernel hardening preferences...')
     print('  {:<39}|{:^13}|{:^10}|{:^20}'.format(
         'option name', 'desired val', 'decision', 'reason'))
-    print('  ' + '=' * 88)
+    print('  ' + '=' * 86)
     for opt in checklist:
         print('  CONFIG_{:<32}|{:^13}|{:^10}|{:^20}'.format(
-                opt.name, opt.expected, opt.decision, opt.reason))
+            opt.name, opt.expected, opt.decision, opt.reason))
     print()
 
 
@@ -234,7 +234,7 @@ def print_check_results():
 
 
 def get_option_state(options, name):
-    return options[name] if name in options else None
+    return options.get(name, None)
 
 
 def perform_checks(parsed_options):