From: Karel Zak Date: Thu, 16 Jul 2020 09:13:09 +0000 (+0200) Subject: lscpu: improve topology debug message X-Git-Tag: v2.37-rc1~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0266f5cbab96104b92a0ead571c1b45ec5b44c3e;p=thirdparty%2Futil-linux.git lscpu: improve topology debug message Signed-off-by: Karel Zak --- diff --git a/sys-utils/lscpu-cputype.c b/sys-utils/lscpu-cputype.c index f12341d0c1..389bd1b862 100644 --- a/sys-utils/lscpu-cputype.c +++ b/sys-utils/lscpu-cputype.c @@ -223,6 +223,9 @@ static int cputype_read_topology(struct lscpu_cxt *cxt, struct lscpu_cputype *ct setsize = CPU_ALLOC_SIZE(cxt->maxcpus); /* CPU set size */ npos = cxt->ncpuspos; /* possible CPUs */ + DBG(TYPE, ul_debugobj(ct, "reading %s/%s/%s topology", + ct->vendor ?: "", ct->model ?: "", ct->modelname ?:"")); + for (i = 0; i < cxt->ncpus; i++) { struct lscpu_cpu *cpu = cxt->cpus[i]; cpu_set_t *thread_siblings = NULL, *core_siblings = NULL; @@ -237,7 +240,7 @@ static int cputype_read_topology(struct lscpu_cxt *cxt, struct lscpu_cputype *ct "cpu%d/topology/thread_siblings", num) != 0) continue; - DBG(TYPE, ul_debugobj(ct, "#%d reading topology", num)); + /*DBG(TYPE, ul_debugobj(ct, " #%d", num));*/ /* read topology maps */ ul_path_readf_cpuset(sys, &thread_siblings, cxt->maxcpus,