cert_audit: Output format improvement
We should print all the information for each objects found every line. This makes it easy to analyze the output. Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
13f2ef4949
commit
31e3d12be9
1 changed files with 7 additions and 7 deletions
|
@ -383,13 +383,13 @@ def merge_auditdata(original: typing.List[AuditData]) \
|
|||
|
||||
|
||||
def list_all(audit_data: AuditData):
|
||||
print("{:20}\t{:20}\t{:3}\t{}".format(
|
||||
for loc in audit_data.locations:
|
||||
print("{}\t{:20}\t{:20}\t{:3}\t{}".format(
|
||||
audit_data.identifier,
|
||||
audit_data.not_valid_before.isoformat(timespec='seconds'),
|
||||
audit_data.not_valid_after.isoformat(timespec='seconds'),
|
||||
audit_data.data_type.name,
|
||||
audit_data.locations[0]))
|
||||
for loc in audit_data.locations[1:]:
|
||||
print("{:20}\t{:20}\t{:3}\t{}".format('', '', '', loc))
|
||||
loc))
|
||||
|
||||
|
||||
def configure_logger(logger: logging.Logger) -> None:
|
||||
|
|
Loading…
Reference in a new issue