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
@@ -8160,7 +8160,7 @@ static int parse_argv(int argc, char *argv[], X509 **ret_certificate, EVP_PKEY *
_cleanup_free_ char *device = NULL;
if (streq(optarg, "list"))
return tpm2_list_devices();
return tpm2_list_devices(/* legend = */ true, /* quiet = */ false);
if (!streq(optarg, "auto")) {
device = strdup(optarg);