]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: remoteproc: Fix the base of strtoul for ID conversion from 3 to 10
authorKeerthy <j-keerthy@ti.com>
Wed, 24 Oct 2018 06:17:14 +0000 (11:47 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 1 Nov 2018 14:02:43 +0000 (10:02 -0400)
Currently the base is 3 fix it 10 so that IDs follow decimal system.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvulta@ti.com>
cmd/remoteproc.c

index 9aebfc2f6ef8e7241d998562f3dde7a965fa0bf9..81463f36b603aef3ce36dfd7571ed14733d6521c 100644 (file)
@@ -120,7 +120,7 @@ static int do_remoteproc_load(cmd_tbl_t *cmdtp, int flag, int argc,
        if (argc != 4)
                return CMD_RET_USAGE;
 
-       id = (int)simple_strtoul(argv[1], NULL, 3);
+       id = (int)simple_strtoul(argv[1], NULL, 10);
        addr = simple_strtoul(argv[2], NULL, 16);
 
        size = simple_strtoul(argv[3], NULL, 16);
@@ -163,7 +163,7 @@ static int do_remoteproc_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
        if (argc != 2)
                return CMD_RET_USAGE;
 
-       id = (int)simple_strtoul(argv[1], NULL, 3);
+       id = (int)simple_strtoul(argv[1], NULL, 10);
 
        if (!rproc_is_initialized()) {
                printf("\tRemote Processors are not initialized\n");