summaryrefslogtreecommitdiff
path: root/cmd/remoteproc.c
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2018-10-24 11:47:14 +0530
committerTom Rini <trini@konsulko.com>2018-11-01 10:02:43 -0400
commit1a25d9071bc08d31779cb66abd6090123b02041f (patch)
tree35c5cc6cb933fa00fbcaf5b41fa3724f80b9a553 /cmd/remoteproc.c
parent25ae8651711ecf1934f4a2468d31d47543a41ea6 (diff)
cmd: remoteproc: Fix the base of strtoul for ID conversion from 3 to 10
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>
Diffstat (limited to 'cmd/remoteproc.c')
-rw-r--r--cmd/remoteproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/remoteproc.c b/cmd/remoteproc.c
index 9aebfc2f6ef..81463f36b60 100644
--- a/cmd/remoteproc.c
+++ b/cmd/remoteproc.c
@@ -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");