Commit ec54a871 authored by davidcunado-arm's avatar davidcunado-arm Committed by GitHub
Browse files

Merge pull request #914 from afaerber/align-hex

fiptool: Support non-decimal --align arguments
parents c99a16fe fb5f7949
...@@ -646,7 +646,7 @@ static unsigned long get_image_align(char *arg) ...@@ -646,7 +646,7 @@ static unsigned long get_image_align(char *arg)
unsigned long align; unsigned long align;
errno = 0; errno = 0;
align = strtoul(arg, &endptr, 10); align = strtoul(arg, &endptr, 0);
if (*endptr != '\0' || !is_power_of_2(align) || errno != 0) if (*endptr != '\0' || !is_power_of_2(align) || errno != 0)
log_errx("Invalid alignment: %s", arg); log_errx("Invalid alignment: %s", arg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment