diff options
| author | Kory Maincent <[email protected]> | 2026-02-23 14:18:37 +0100 |
|---|---|---|
| committer | Ilias Apalodimas <[email protected]> | 2026-03-26 08:20:00 +0200 |
| commit | bcae1381f88f2122658b3aaacb04b4ea2a873a36 (patch) | |
| tree | 921c2e00f607b99fe717d2f1a669ecba9d6e38ab | |
| parent | 876fc8df120bfdc40648e904662a7c6fbf1e543e (diff) | |
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 <[email protected]>
Tested-by: Dario Binacchi <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
| -rw-r--r-- | tools/fwumdata_src/mkfwumdata.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |
