mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
Check that 'uefispec_concern' is not empty before logging an error message.
This commit is contained in:
@@ -178,10 +178,11 @@ class access_uefispec(BaseModule):
|
||||
self.logger.log_bad("Variable {} should be read only.".format(name))
|
||||
res = ModuleResult.FAILED
|
||||
|
||||
self.logger.log('')
|
||||
self.logger.log_bad('Variables with attributes that differ from UEFI spec:')
|
||||
for name in uefispec_concern:
|
||||
self.logger.log(' {}'.format(name))
|
||||
if len(uefispec_concern) > 0:
|
||||
self.logger.log('')
|
||||
self.logger.log_bad('Variables with attributes that differ from UEFI spec:')
|
||||
for name in uefispec_concern:
|
||||
self.logger.log(' {}'.format(name))
|
||||
|
||||
if do_modify:
|
||||
self.logger.log('')
|
||||
|
||||
Reference in New Issue
Block a user