summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/msrtool/msrtool.c4
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();