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>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3311 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2008-05-14 13:52:50 +00:00 committed by Stefan Reinauer
parent e173f9904c
commit d466e6a874
2 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@
.SH NAME .SH NAME
inteltool \- a tool for dumping Intel(R) CPU / chipset configuration parameters inteltool \- a tool for dumping Intel(R) CPU / chipset configuration parameters
.SH SYNOPSIS .SH SYNOPSIS
.B inteltool \fR[\fB\-vh?grpmedPM\fR] .B inteltool \fR[\fB\-vh?grpmedPMa\fR]
.SH DESCRIPTION .SH DESCRIPTION
.B inteltool .B inteltool
is a handy little tool for dumping the configuration space of Intel(R) is a handy little tool for dumping the configuration space of Intel(R)

View file

@ -646,7 +646,7 @@ void print_version(void)
void print_usage(const char *name) void print_usage(const char *name)
{ {
printf("usage: %s [-vh?grpmedPM]\n", name); printf("usage: %s [-vh?grpmedPMa]\n", name);
printf("\n" printf("\n"
" -v | --version: print the version\n" " -v | --version: print the version\n"
" -h | --help: print this help\n\n" " -h | --help: print this help\n\n"
@ -658,6 +658,7 @@ void print_usage(const char *name)
" -d | --dmibar: dump northbridge DMIBAR registers\n" " -d | --dmibar: dump northbridge DMIBAR registers\n"
" -P | --pciexpress: dump northbridge PCIEXBAR registers\n\n" " -P | --pciexpress: dump northbridge PCIEXBAR registers\n\n"
" -M | --msrs: dump CPU MSRs\n" " -M | --msrs: dump CPU MSRs\n"
" -a | --all: dump all known registers\n"
"\n"); "\n");
exit(1); exit(1);
} }
@ -703,7 +704,7 @@ int main(int argc, char *argv[])
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH, "ICH" } { 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) { long_options, &option_index)) != EOF) {
switch (opt) { switch (opt) {
case 'v': case 'v':