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 D31CFC433EF for ; Tue, 25 Jan 2022 17:15:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EC0AF8390B; Tue, 25 Jan 2022 18:14:12 +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="bEbFBvLZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4265A830D0; Tue, 25 Jan 2022 18:13:46 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 9E0DB83896 for ; Tue, 25 Jan 2022 18:13:38 +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=kabel@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 943B861307; Tue, 25 Jan 2022 17:13:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08D82C36AE2; Tue, 25 Jan 2022 17:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643130817; bh=4gxerJ5LeBkMvipKOydMaiDE9/awk8eA1QoHUmkqNmQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bEbFBvLZF8xJ0v2N2PkG5FwJma8t156cD2WamdBOVAbbbE5j6wbNsmmWVBG0KN1e5 Hmk3YEOYnzNSiiX9WeN9OByfgekoBnu/Xc1CmFXPR+JJyZBkNwEzJhSNaEMmtJ1xFr oCGu8wtxo3mGBSHCqzI/jMSKg0AsOqTg4BTgFrh1jYflo5l5vwlZD0j+3twMGWc4f5 1DvbiJZDtrnx9+sqpGQecJaKge5kBxGve/nmDjwMDzT2y5pWB7YIbpfeQMOLdL5T04 CrBj02bgARWEMU5GH2GsdWGbiJoF0CrogEZNOaUzhBDQOmMrvIH48fexPN/9+//Xik K3JY0Ww2kKMjA== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Stefan Roese Cc: u-boot@lists.denx.de, pali@kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH u-boot-marvell 13/14] tools: kwboot: Fix usage of -D without -t Date: Tue, 25 Jan 2022 18:13:12 +0100 Message-Id: <20220125171313.14498-14-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220125171313.14498-1-kabel@kernel.org> References: <20220125171313.14498-1-kabel@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 From: Pali Rohár When -D is specified then both bootmsg and debugmsg are not set, but imgpath is set. Fix this check for valid and required parameters. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- tools/kwboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index fca1c73c55..859559fb72 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -1819,7 +1819,7 @@ main(int argc, char **argv) } } while (1); - if (!bootmsg && !term && !debugmsg) + if (!bootmsg && !term && !debugmsg && !imgpath) goto usage; ttypath = argv[optind++]; -- 2.34.1