From: Kory Maincent Date: Mon, 23 Feb 2026 13:18:37 +0000 (+0100) Subject: tools: mkfwumdata: Improve error message specificity X-Git-Tag: v2026.07-rc1~63^2~7^2~3 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=bcae1381f88f2122658b3aaacb04b4ea2a873a36;p=thirdparty%2Fu-boot.git tools: mkfwumdata: Improve error message specificity Replace the generic error message with a more informative one. This helps users quickly understand the correct command-line argument format when the tool reports an error. Signed-off-by: Kory Maincent Tested-by: Dario Binacchi Signed-off-by: Ilias Apalodimas --- diff --git a/tools/fwumdata_src/mkfwumdata.c b/tools/fwumdata_src/mkfwumdata.c index fbc2067bc12..5ceec7a2980 100644 --- a/tools/fwumdata_src/mkfwumdata.c +++ b/tools/fwumdata_src/mkfwumdata.c @@ -473,7 +473,9 @@ int main(int argc, char *argv[]) /* This command takes UUIDs * images and output file. */ if (optind + images + 1 != argc) { - fprintf(stderr, "Error: UUID list or output file is not specified or too much.\n"); + fprintf(stderr, + "Error: Expected %ld UUID string(s) and 1 output file, got %d argument(s).\n", + images, argc - optind); print_usage(); return -ERANGE; }