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 <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -196,8 +196,6 @@ int main(int argc, char *argv[])
|
|||||||
dump_readable = 1;
|
dump_readable = 1;
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
/* Print version in --verbose mode. */
|
|
||||||
print_version();
|
|
||||||
verbose = 1;
|
verbose = 1;
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
@@ -221,6 +219,8 @@ int main(int argc, char *argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_version();
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(superio_ports_table); i++) {
|
for (i = 0; i < ARRAY_SIZE(superio_ports_table); i++) {
|
||||||
for (j = 0; superio_ports_table[i].ports[j] != EOT; j++)
|
for (j = 0; superio_ports_table[i].ports[j] != EOT; j++)
|
||||||
superio_ports_table[i].probe_idregs(
|
superio_ports_table[i].probe_idregs(
|
||||||
|
Reference in New Issue
Block a user