Skip to content
Snippets Groups Projects
Commit d4ade141 authored by Moe Jette's avatar Moe Jette
Browse files

Change some error() to debug() for multi-core.

parent 4747b61b
No related branches found
No related tags found
No related merge requests found
...@@ -528,7 +528,7 @@ get_cpuinfo(uint16_t numproc, ...@@ -528,7 +528,7 @@ get_cpuinfo(uint16_t numproc,
numcpu++; numcpu++;
curcpu = val; curcpu = val;
if (val >= numproc) { /* out of bounds, ignore */ if (val >= numproc) { /* out of bounds, ignore */
error("cpuid is %u (> %d), ignored", debug("cpuid is %u (> %d), ignored",
val, numproc); val, numproc);
continue; continue;
} }
...@@ -580,7 +580,7 @@ get_cpuinfo(uint16_t numproc, ...@@ -580,7 +580,7 @@ get_cpuinfo(uint16_t numproc,
mincoreid = MIN(mincoreid, val); mincoreid = MIN(mincoreid, val);
} else if (chk_cpuinfo_uint32(buffer, "siblings", &val)) { } else if (chk_cpuinfo_uint32(buffer, "siblings", &val)) {
if (val >= numproc) { /* out of bounds, ignore */ if (val >= numproc) { /* out of bounds, ignore */
error("siblings is %u (> %d), ignored", debug("siblings is %u (> %d), ignored",
val, numproc); val, numproc);
continue; continue;
} }
...@@ -590,7 +590,7 @@ get_cpuinfo(uint16_t numproc, ...@@ -590,7 +590,7 @@ get_cpuinfo(uint16_t numproc,
minsibs = MIN(minsibs, val); minsibs = MIN(minsibs, val);
} else if (chk_cpuinfo_uint32(buffer, "cpu cores", &val)) { } else if (chk_cpuinfo_uint32(buffer, "cpu cores", &val)) {
if (val >= numproc) { /* out of bounds, ignore */ if (val >= numproc) { /* out of bounds, ignore */
error("cores is %u (> %d), ignored", debug("cores is %u (> %d), ignored",
val, numproc); val, numproc);
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment