From d937b5243cea29a1144a5e25f768ee06684445f8 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 17 Oct 2007 23:42:02 +0000 Subject: Print the version number always, not only in verbose mode. We often want to know the exact version number of superiotool which was used to gather a certain output/dump. Signed-off-by: Uwe Hermann Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/superiotool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/superiotool/superiotool.c') diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c index 7b5bb40f75..202daec151 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c @@ -196,8 +196,6 @@ int main(int argc, char *argv[]) dump_readable = 1; break; case 'V': - /* Print version in --verbose mode. */ - print_version(); verbose = 1; break; case 'v': @@ -221,6 +219,8 @@ int main(int argc, char *argv[]) exit(1); } + print_version(); + for (i = 0; i < ARRAY_SIZE(superio_ports_table); i++) { for (j = 0; superio_ports_table[i].ports[j] != EOT; j++) superio_ports_table[i].probe_idregs( -- cgit v1.2.3