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:
parent
49f620221a
commit
f42b83e958
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue