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 B17F0C433F5 for ; Tue, 15 Feb 2022 19:00:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED99483909; Tue, 15 Feb 2022 20:00:11 +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="WEeGz7oM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0260983845; Tue, 15 Feb 2022 19:59:56 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (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 5AD2F83909 for ; Tue, 15 Feb 2022 19:59:46 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 1F8A06173E; Tue, 15 Feb 2022 18:59:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62C2BC340F2; Tue, 15 Feb 2022 18:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644951584; bh=8UPGJu2/j+SM8qAyKgpXUHJ0X7/BIoQ5TvWtGmkBW2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WEeGz7oM+GaQk8clKZ05ut3UopuX3SHN+fyRNDmxvkuamY0U5jpfFgmAyY0H0f3sE 2XQty+sfA0zROSJ+6f4DiILFvKls+EYQHdNqnDtcleJM8Fz50BHjFibMqGNkeNZcxE pUXkYwSAfBu1kiRBDGBtSyeFfCux6HTIEd8NA6kiJCjCd1rZCqNtRA5dBZbU7B0w1j KrGkIx1G1+KkV/YefAhqGD8AfHyP0dzB+eqPDri4kQ81w82aKwkgSxtzHVZWn8cAF/ 9ahOBmI6xVvYtZth3Lrgd0Ugv51JewH3sJJogZ5IVMK+wz8fWJYk5B1B10TzTANYK+ fXidPP9tJ1rOw== Received: by pali.im (Postfix) id 1C365F13; Tue, 15 Feb 2022 19:59:44 +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 4/7] tools: kwbimage: Do not show mkimage error message in dumpimage Date: Tue, 15 Feb 2022 19:59:22 +0100 Message-Id: <20220215185925.16060-5-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220215185925.16060-1-pali@kernel.org> References: <20220215185925.16060-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 --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 22e6a44c561c..8fd30516c9d4 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -2436,7 +2436,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