mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
mkenvimage: fix usage message
Don't use argv[0] for usage() because it may or may not be clobbered by the previous call to basename(). Use "prg" instead as it is done in the rest of the code. Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Anatolij Gustschin
parent
656f4c6537
commit
e758a5c4a7
@@ -123,7 +123,7 @@ int main(int argc, char **argv)
|
|||||||
case ':':
|
case ':':
|
||||||
fprintf(stderr, "Missing argument for option -%c\n",
|
fprintf(stderr, "Missing argument for option -%c\n",
|
||||||
optopt);
|
optopt);
|
||||||
usage(argv[0]);
|
usage(prg);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "Wrong option -%c\n", optopt);
|
fprintf(stderr, "Wrong option -%c\n", optopt);
|
||||||
|
Reference in New Issue
Block a user