Skip to content

Commit

Permalink
support quiet
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
  • Loading branch information
williamcroberts committed Dec 7, 2023
1 parent ba5f457 commit afb46fd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tools/tpm2_tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,6 @@ int main(int argc, char **argv) {
tpm2_errata_init(ctx.ectx);
}

/*
* It seems like you would want to add quiet flag to this, but callers expect the yaml
* doc to be non-null, just use quiet to not emit it at the end for simplicity.
*/
bool output = !((ctx.tool_opts->flags & TPM2_OPTIONS_NO_OUTPUT) || flags.quiet);
if (output) {
ctx.doc = tpm2_yaml_new();
Expand Down

0 comments on commit afb46fd

Please sign in to comment.