]> 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 26a57c5e96c7ae00d8cad546710f0e409d1dbdf6..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) {
-               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;
        }