From 0266f5cbab96104b92a0ead571c1b45ec5b44c3e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 16 Jul 2020 11:13:09 +0200 Subject: [PATCH] lscpu: improve topology debug message Signed-off-by: Karel Zak --- sys-utils/lscpu-cputype.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.47.3