From: Pali Rohár Date: Thu, 17 Feb 2022 09:43:37 +0000 (+0100) Subject: tools: kwbimage: Do not show mkimage error message in dumpimage X-Git-Tag: v2022.07~176^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e65ea147e2e0c90eeca325710d6b6704bac71c04;p=platform%2Fkernel%2Fu-boot.git tools: kwbimage: Do not show mkimage error message in dumpimage When pflag is set then kwbimage was invoked by dumpimage and not mkimage. So do not show mkimage error message in this case. Signed-off-by: Pali Rohár Tested-by: Tony Dinh Reviewed-by: Stefan Roese --- diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 5a717e5..73788d8 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -2449,7 +2449,7 @@ static int kwbimage_extract_subimage(void *ptr, struct image_tool_params *params */ static int kwbimage_check_params(struct image_tool_params *params) { - if (!params->lflag && !params->iflag && + if (!params->lflag && !params->iflag && !params->pflag && (!params->imagename || !strlen(params->imagename))) { char *msg = "Configuration file for kwbimage creation omitted";