]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: improve topology debug message
authorKarel Zak <kzak@redhat.com>
Thu, 16 Jul 2020 09:13:09 +0000 (11:13 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-cputype.c

index f12341d0c1375cba05ece31f05845d473871f0e1..389bd1b862b878d63ea3077c6f5c22cb98f40744 100644 (file)
@@ -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,