Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
ec54a871
Commit
ec54a871
authored
Apr 25, 2017
by
davidcunado-arm
Committed by
GitHub
Apr 25, 2017
Browse files
Merge pull request #914 from afaerber/align-hex
fiptool: Support non-decimal --align arguments
parents
c99a16fe
fb5f7949
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/fiptool/fiptool.c
View file @
ec54a871
...
...
@@ -646,7 +646,7 @@ static unsigned long get_image_align(char *arg)
unsigned
long
align
;
errno
=
0
;
align
=
strtoul
(
arg
,
&
endptr
,
1
0
);
align
=
strtoul
(
arg
,
&
endptr
,
0
);
if
(
*
endptr
!=
'\0'
||
!
is_power_of_2
(
align
)
||
errno
!=
0
)
log_errx
(
"Invalid alignment: %s"
,
arg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment