tpm2-util: allow to control if legend and/or footer shown by tpm2_list_devices()

This commit is contained in:
Yu Watanabe
2024-12-12 15:21:16 +09:00
parent 9d8cb69e7f
commit 66d2c693ac
8 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -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),