summaryrefslogtreecommitdiff
path: root/cmd/abootimg.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/abootimg.c')
-rw-r--r--cmd/abootimg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/abootimg.c b/cmd/abootimg.c
index 40e8978f15..f48a9dcb02 100644
--- a/cmd/abootimg.c
+++ b/cmd/abootimg.c
@@ -161,7 +161,7 @@ static int do_abootimg_addr(struct cmd_tbl *cmdtp, int flag, int argc,
if (argc != 2)
return CMD_RET_USAGE;
- img_addr = simple_strtoul(argv[1], &endp, 16);
+ img_addr = hextoul(argv[1], &endp);
if (*endp != '\0') {
printf("Error: Wrong image address\n");
return CMD_RET_FAILURE;