diff options
author | Benoît Legat <benoit.legat@gmail.com> | 2013-07-08 12:23:27 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-07-08 19:39:00 +0200 |
commit | f42b83e958f4529ef5a859494807914a5601d2f9 (patch) | |
tree | 5834c6daf049a8ad6e8538e179d6c8b678da54cb | |
parent | 49f620221aee69cf0d5123a1e8f1e73896724934 (diff) | |
download | coreboot-f42b83e958f4529ef5a859494807914a5601d2f9.tar.xz |
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>
-rw-r--r-- | util/msrtool/msrtool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/msrtool/msrtool.c b/util/msrtool/msrtool.c index 5329eb17d5..356d460c9f 100644 --- a/util/msrtool/msrtool.c +++ b/util/msrtool/msrtool.c @@ -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(); |