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 7FC59C05027 for ; Sun, 29 Jan 2023 16:46:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 50496855A1; Sun, 29 Jan 2023 17:46:30 +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="U04N7Q8o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95ABF8573B; Sun, 29 Jan 2023 17:46:28 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::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 6FCBC85518 for ; Sun, 29 Jan 2023 17:46:26 +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 1BC06B808CD; Sun, 29 Jan 2023 16:46:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C839C433EF; Sun, 29 Jan 2023 16:46:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675010784; bh=OTnFNHz6EjqXvoDiErFeo0llDNNj7PcY/YMv9Bu9x+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U04N7Q8oWB6PC6h12tFzmsq0cmp/J7eO2i9tuV/2Pkso2onFgX+RsoSjMPFhfbr0F AOjpyJcea5DustxS2vdKf4Agt6LJojcYRV+MQQvaKN/g3ovFvhJbBAR9D7qrj0bqPo Z+iYoxFIUE/DLcWvN2X3iCgkEZKrEMbbyMxXmYhb1+9bQE7EuLdwYraS6vA01esCZ4 jJIwMXjNvAixq2N+K32gL/W166jNAelkAleO1uehYr6UqJHw9wUA1LOtrWrphG5Zm3 dubGjjr85qJXbn5gFrHSAJX2hPSEC0L4mKM55VMVvjWpm6xOQSst4ffcG7Ze6bFugD dKrgzKfeQpqFA== Received: by pali.im (Postfix) id 1F69BB73; Sun, 29 Jan 2023 17:46:22 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Simon Glass Cc: u-boot@lists.denx.de Subject: [PATCH u-boot 2/3] tools: imagetool: Show error message when detecting image type failed Date: Sun, 29 Jan 2023 17:45:54 +0100 Message-Id: <20230129164555.9940-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230129164555.9940-1-pali@kernel.org> References: <20230129164555.9940-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.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Pali Rohár --- tools/imagetool.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/imagetool.c b/tools/imagetool.c index 688169b3a813..e1021f44f5ad 100644 --- a/tools/imagetool.c +++ b/tools/imagetool.c @@ -71,6 +71,11 @@ int imagetool_verify_print_header( } } + if (retval != 0) { + fprintf(stderr, "%s: cannot detect image type\n", + params->cmdname); + } + return retval; } -- 2.20.1