Skip to content

Commit

Permalink
log: fix verbose option
Browse files Browse the repository at this point in the history
log_set_level() was never being called when verbose
was enabled. So set it when verbose is enabled.

This fixes LOG_INFO not showing up.

Signed-off-by: William Roberts <william.c.roberts@intel.com>
  • Loading branch information
William Roberts committed Nov 15, 2017
1 parent 6b32795 commit 9f38932
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/tpm2_tool.c
Expand Up @@ -119,6 +119,10 @@ int main(int argc, char *argv[], char *envp[]) {
goto free_opts;
}

if (flags.verbose) {
log_set_level(log_level_verbose);
}

/*
* We don't want a cyclic dependency between tools/options. Resolving those
* works well on linux/elf based systems, but darwin and windows tend to
Expand Down

0 comments on commit 9f38932

Please sign in to comment.