msrtool: Fix verbose ignored by cpuid().

This is a trivial patch moving cpuid() call after reading argv
so that verbose is set.

Change-Id: Ic621191ef650495614a041413c1a0f707d4469e6
Signed-off-by: Benoît Legat <benoit.legat@gmail.com>
Reviewed-on: http://review.coreboot.org/3627
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Benoît Legat 2013-07-08 12:23:27 +02:00 committed by Ronald G. Minnich
parent 49f620221a
commit f42b83e958
1 changed files with 3 additions and 1 deletions

View File

@ -271,7 +271,6 @@ int main(int argc, char *argv[]) {
int ret = 1;
const struct sysdef *s;
const struct targetdef *t;
const struct cpuid_t *id = cpuid();
uint8_t tn, listmsrs = 0, listknown = 0, input = 0;
uint32_t addr = 0;
const char *streamfn = NULL, *difffn = NULL;
@ -334,6 +333,9 @@ int main(int argc, char *argv[]) {
break;
}
/** cpuid is called after reading argv so that verbose is set */
const struct cpuid_t *id = cpuid();
printf_quiet("msrtool %s\n", VERSION);
pacc = pci_alloc();