mirror of
https://github.com/thepigeongenerator/cpusetcores.git
synced 2025-12-16 21:45:46 +01:00
bake OPT_LIST_CORES into OPT_VERBOSE
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user