-h | --help Show a short help text
Per default (no options) superiotool will just probe for a Super I/O
-and print its vendor, name, ID, version, and config port.
+and print its vendor, name, ID, revision, and config port.
Typical usage of superiotool:
int main(int argc, char *argv[])
{
int i, j, opt, option_index;
+ char tmp[80];
const static struct option long_options[] = {
{"dump", no_argument, NULL, 'd'},
verbose = 1;
break;
case 'v':
- printf("superiotool %s\n", SUPERIOTOOL_VERSION);
+ strncpy((char *)&tmp,
+ (const char *)&SUPERIOTOOL_VERSION[6],
+ strlen(SUPERIOTOOL_VERSION) - 8);
+ printf("superiotool r%s\n", (char *)&tmp);
exit(0);
break;
case 'h':
#include <getopt.h>
#include <sys/io.h>
-#define SUPERIOTOOL_VERSION "r$Rev$"
+#define SUPERIOTOOL_VERSION "$Rev$"
#define USAGE "Usage: superiotool [-d] [-D] [-V] [-v] [-h]\n\n\
-d | --dump Dump Super I/O registers\n\