diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-08-08 23:52:33 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-08-08 23:52:33 +0000 |
commit | 9b32de94f5104cb7fa12816b7fa561b804df6ed8 (patch) | |
tree | 9501e463b76abf831d62bfd1a9a9ac2f8939476e /cli_output.c | |
parent | a8cf3620a42ca5927253822a813e3fbae1d6e7bf (diff) | |
download | flashrom-9b32de94f5104cb7fa12816b7fa561b804df6ed8.tar.gz flashrom-9b32de94f5104cb7fa12816b7fa561b804df6ed8.tar.bz2 flashrom-9b32de94f5104cb7fa12816b7fa561b804df6ed8.zip |
Refactor some CLI-relevant parts
Begin to move functions that clearly belong to the (command line)
user interface out of flashrom's core files like flashrom.c.
- Refine messages within check_chip_supported(), rename it to
print_chip_support_status() and move it to newly created cli_common.c.
- Move flashbuses_to_text() to cli_common.c as well.
- Move global verbosity variables to cli_output.c.
Corresponding to flashrom svn r1841.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'cli_output.c')
-rw-r--r-- | cli_output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli_output.c b/cli_output.c index 5eff1c056..feafbd201 100644 --- a/cli_output.c +++ b/cli_output.c @@ -25,6 +25,9 @@ #include <errno.h> #include "flash.h" +int verbose_screen = MSG_INFO; +int verbose_logfile = MSG_DEBUG2; + #ifndef STANDALONE static FILE *logfile = NULL; |