mirror of
https://github.com/thepigeongenerator/cpusetcores.git
synced 2025-12-18 14:35:45 +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)
|
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);
|
print_cpu_count(mcpus);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ uint8_t getoptions(int32_t argc, char* const* argv, int32_t* ncpus) {
|
|||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
if (opts & OPT_VERBOSE) fatal(msg, 'v');
|
if (opts & OPT_VERBOSE) fatal(msg, 'v');
|
||||||
opts |= OPT_VERBOSE;
|
opts |= OPT_VERBOSE | OPT_LIST_CORES;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
if (opts & OPT_INVERT) fatal(msg, 'i');
|
if (opts & OPT_INVERT) fatal(msg, 'i');
|
||||||
|
|||||||
Reference in New Issue
Block a user