From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC50EC433F5 for ; Thu, 17 Feb 2022 09:45:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EC23983B69; Thu, 17 Feb 2022 10:44:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="AFmoBVLG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 246CF83B49; Thu, 17 Feb 2022 10:44:39 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 531A183AA5 for ; Thu, 17 Feb 2022 10:44:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F1B88B8216C; Thu, 17 Feb 2022 09:44:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A4C9C340EB; Thu, 17 Feb 2022 09:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645091059; bh=30urPtV0rv4YDxzJy3vVfXLl9ilWM65/wocQcVzgqnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AFmoBVLGiERn539sdQm54nlRfHgsRU65g2aOD0052fD8xQac9KO8cxDgodRBJ8Vw8 6UCnlHSapjd6XEa7JjjePqjtH7pqya8ii7wmUJ+ozPPSvWwMBleAF8HZAiz4rmQAsc DTMNIM+Lh7O7VYCqX1kYFaA6dZliCksgIReGIVgBd50ogXIcBNARFcwNzN3eoh9hZp 7hDmtkeqJQgqHLBvEMSSoeSVE1Nv+qzxFeCUWtozaOXswCGAd8fAsaBakaMnnvamuk R/ItS5FcXEgmCLldVBs0KNzrqLxOFtWjw4Hoqa4Dn1Nonk3lUNex6FWVjFt4SDiPWI Ew5w1Qa6M9KHA== Received: by pali.im (Postfix) id 5373D1187; Thu, 17 Feb 2022 10:44:19 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Tony Dinh Cc: u-boot@lists.denx.de Subject: [PATCH u-boot-marvell v2 4/7] tools: kwbimage: Do not show mkimage error message in dumpimage Date: Thu, 17 Feb 2022 10:43:37 +0100 Message-Id: <20220217094340.9048-5-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220217094340.9048-1-pali@kernel.org> References: <20220215185925.16060-1-pali@kernel.org> <20220217094340.9048-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean 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 --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 5a717e5354bf..73788d8d892f 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"; -- 2.20.1