git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e658c1
)
binman: Return failure when a usage() message is generated
author
Simon Glass
<sjg@chromium.org>
Wed, 31 Jul 2024 14:49:03 +0000
(08:49 -0600)
committer
Tom Rini
<trini@konsulko.com>
Mon, 5 Aug 2024 18:15:29 +0000
(12:15 -0600)
The tool must return an error code when invalid arguments are provided,
otherwise binman has no way of knowing that anything went wrong.
Correct this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes:
fab430be2f4
("tools: add mkeficapsule command for UEFI...")
tools/mkeficapsule.c
patch
|
blob
|
history
diff --git
a/tools/mkeficapsule.c
b/tools/mkeficapsule.c
index
c112ae2
..
f28008a
100644
(file)
--- a/
tools/mkeficapsule.c
+++ b/
tools/mkeficapsule.c
@@
-977,7
+977,7
@@
int main(int argc, char **argv)
exit(EXIT_SUCCESS);
default:
print_usage();
- exit(EXIT_
SUCCESS
);
+ exit(EXIT_
FAILURE
);
}
}