Commit 1a25d9071bc08d31779cb66abd6090123b02041f
Committed by
Tom Rini
1 parent
25ae865171
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
cmd/remoteproc.c
... | ... | @@ -120,7 +120,7 @@ |
120 | 120 | if (argc != 4) |
121 | 121 | return CMD_RET_USAGE; |
122 | 122 | |
123 | - id = (int)simple_strtoul(argv[1], NULL, 3); | |
123 | + id = (int)simple_strtoul(argv[1], NULL, 10); | |
124 | 124 | addr = simple_strtoul(argv[2], NULL, 16); |
125 | 125 | |
126 | 126 | size = simple_strtoul(argv[3], NULL, 16); |
... | ... | @@ -163,7 +163,7 @@ |
163 | 163 | if (argc != 2) |
164 | 164 | return CMD_RET_USAGE; |
165 | 165 | |
166 | - id = (int)simple_strtoul(argv[1], NULL, 3); | |
166 | + id = (int)simple_strtoul(argv[1], NULL, 10); | |
167 | 167 | |
168 | 168 | if (!rproc_is_initialized()) { |
169 | 169 | printf("\tRemote Processors are not initialized\n"); |