From f42b83e958f4529ef5a859494807914a5601d2f9 Mon Sep 17 00:00:00 2001 From: Benoît Legat Date: Mon, 8 Jul 2013 12:23:27 +0200 Subject: msrtool: Fix verbose ignored by cpuid(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/3627 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- util/msrtool/msrtool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util/msrtool/msrtool.c') 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(); -- cgit v1.2.3