Author: stepan Date: 2008-05-14 15:52:50 +0200 (Wed, 14 May 2008) New Revision: 3311
Modified: trunk/util/inteltool/inteltool.8 trunk/util/inteltool/inteltool.c Log: trivial patch to fix options. Thanks to Uwe Hermann for the hint!
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/util/inteltool/inteltool.8 =================================================================== --- trunk/util/inteltool/inteltool.8 2008-05-14 12:22:38 UTC (rev 3310) +++ trunk/util/inteltool/inteltool.8 2008-05-14 13:52:50 UTC (rev 3311) @@ -2,7 +2,7 @@ .SH NAME inteltool - a tool for dumping Intel(R) CPU / chipset configuration parameters .SH SYNOPSIS -.B inteltool \fR[\fB-vh?grpmedPM\fR] +.B inteltool \fR[\fB-vh?grpmedPMa\fR] .SH DESCRIPTION .B inteltool is a handy little tool for dumping the configuration space of Intel(R)
Modified: trunk/util/inteltool/inteltool.c =================================================================== --- trunk/util/inteltool/inteltool.c 2008-05-14 12:22:38 UTC (rev 3310) +++ trunk/util/inteltool/inteltool.c 2008-05-14 13:52:50 UTC (rev 3311) @@ -646,7 +646,7 @@
void print_usage(const char *name) { - printf("usage: %s [-vh?grpmedPM]\n", name); + printf("usage: %s [-vh?grpmedPMa]\n", name); printf("\n" " -v | --version: print the version\n" " -h | --help: print this help\n\n" @@ -658,6 +658,7 @@ " -d | --dmibar: dump northbridge DMIBAR registers\n" " -P | --pciexpress: dump northbridge PCIEXBAR registers\n\n" " -M | --msrs: dump CPU MSRs\n" + " -a | --all: dump all known registers\n" "\n"); exit(1); } @@ -703,7 +704,7 @@ { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH, "ICH" } };
- while ((opt = getopt_long(argc, argv, "vh?gmrpedPca", + while ((opt = getopt_long(argc, argv, "vh?grpmedPMa", long_options, &option_index)) != EOF) { switch (opt) { case 'v':