]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_mp.c
common/cmd_bootm.c: fix printf() format warnings
[u-boot] / common / cmd_mp.c
index b2a397cdfbd23cae642b60ee34f85ce9fc45af6d..c8444fb841c5623a069928dbd0d8a18dc8e1b208 100644 (file)
@@ -34,9 +34,9 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
        cpuid = simple_strtoul(argv[1], NULL, 10);
-       if (cpuid >= CONFIG_NR_CPUS) {
+       if (cpuid >= CONFIG_NUM_CPUS) {
                printf ("Core num: %lu is out of range[0..%d]\n",
-                               cpuid, CONFIG_NR_CPUS - 1);
+                               cpuid, CONFIG_NUM_CPUS - 1);
                return 1;
        }