tpm2-util: allow to control if legend and/or footer shown by tpm2_list_devices()
This commit is contained in:
@@ -493,7 +493,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
_cleanup_free_ char *device = NULL;
|
||||
|
||||
if (streq(optarg, "list"))
|
||||
return tpm2_list_devices();
|
||||
return tpm2_list_devices(/* legend = */ true, /* quiet = */ false);
|
||||
|
||||
if (arg_enroll_type >= 0 || arg_tpm2_device)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||
|
||||
Reference in New Issue
Block a user