bake OPT_LIST_CORES into OPT_VERBOSE

This commit is contained in:
2025-03-20 15:24:01 +01:00
parent 0a60702f9d
commit cc9f8feb61
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ int32_t main(int32_t argc, char** argv) {
break; // break if OPT_SET_ALL is not set (assuming the rest of the CPUs are already off)
}
if ((opts & OPT_LIST_CORES) || (opts & OPT_VERBOSE))
if ((opts & OPT_LIST_CORES))
print_cpu_count(mcpus);
return 0;

View File

@@ -23,7 +23,7 @@ uint8_t getoptions(int32_t argc, char* const* argv, int32_t* ncpus) {
break;
case 'v':
if (opts & OPT_VERBOSE) fatal(msg, 'v');
opts |= OPT_VERBOSE;
opts |= OPT_VERBOSE | OPT_LIST_CORES;
break;
case 'i':
if (opts & OPT_INVERT) fatal(msg, 'i');