diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-08-08 23:52:33 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-08-08 23:52:33 +0000 |
commit | 823451c426864c43f113b81aa77551328a585418 (patch) | |
tree | 9501e463b76abf831d62bfd1a9a9ac2f8939476e /cli_classic.c | |
parent | f69f0c63b93e60c9c3bfd2cb6f88544479ce2918 (diff) | |
download | flashrom-823451c426864c43f113b81aa77551328a585418.tar.gz |
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.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1841 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
-rw-r--r-- | cli_classic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_classic.c b/cli_classic.c index 60b8b88..73ab57a 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -499,7 +499,7 @@ int main(int argc, char *argv[]) fill_flash = &flashes[0]; - check_chip_supported(fill_flash->chip); + print_chip_support_status(fill_flash->chip); size = fill_flash->chip->total_size * 1024; if (check_max_decode(fill_flash->mst->buses_supported & fill_flash->chip->bustype, size) && (!force)) { |