}
cpuid = simple_strtoul(argv[1], NULL, 10);
- if (cpuid >= CONFIG_NR_CPUS) {
- printf ("Core num: %d is out of range[0..%d]\n",
- cpuid, CONFIG_NR_CPUS - 1);
+ if (cpuid >= CONFIG_NUM_CPUS) {
+ printf ("Core num: %lu is out of range[0..%d]\n",
+ cpuid, CONFIG_NUM_CPUS - 1);
return 1;
}