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