Author: uwe
Date: 2007-10-18 01:42:02 +0200 (Thu, 18 Oct 2007)
New Revision: 2871

Modified:
   trunk/util/superiotool/superiotool.c
Log:
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 <[EMAIL PROTECTED]>
Acked-by: Stefan Reinauer <[EMAIL PROTECTED]>



Modified: trunk/util/superiotool/superiotool.c
===================================================================
--- trunk/util/superiotool/superiotool.c        2007-10-17 23:37:36 UTC (rev 
2870)
+++ trunk/util/superiotool/superiotool.c        2007-10-17 23:42:02 UTC (rev 
2871)
@@ -196,8 +196,6 @@
                        dump_readable = 1;
                        break;
                case 'V':
-                       /* Print version in --verbose mode. */
-                       print_version();
                        verbose = 1;
                        break;
                case 'v':
@@ -221,6 +219,8 @@
                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(


-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to