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 76E1CC433F5 for ; Tue, 14 Dec 2021 13:23:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 37D788203C; Tue, 14 Dec 2021 14:23:20 +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="TkUmfr5D"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F075F82AB1; Tue, 14 Dec 2021 14:22:51 +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 915B280FF4 for ; Tue, 14 Dec 2021 14:22:37 +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 874DA614E6; Tue, 14 Dec 2021 13:22:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E967CC34601; Tue, 14 Dec 2021 13:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639488156; bh=eIdmT6GdN6geVrE+oZ7GLEzyEPDX3GAtZ/59LD+B/Js=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TkUmfr5DKyswENvVANwmGCiRx/fGnMmZZOfSoip7Z9yQDVkOxUAlF+wsFOA5TkX2J 832E7jH/EId3adjSL829PQGV6CUB1/hVWN+pI2JHKtDY70RIqepSPJyC0cME3gobpm h4fdz5iexil5xvz7ACUTmvHIGblRGqHJeyIkgePXM1OTdxsQ+FVo8gzEWZMtibEFiQ wQWGjwEYqDQqV40rBZIrZxuX86wQzVTPyBN3fhuVpsEQ/a/XhIY7UxPwLSRE7H2H1M vCPmag45KOF/RU7uoK05TIxkUbZ8/8djN1ltvetDWI8F0EHJ/CzOBylHaVGl5ff6W9 1O3llm3Tai5Fg== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Stefan Roese Cc: u-boot@lists.denx.de, =?UTF-8?q?Pali=20Roh=C3=A1r?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH u-boot-marvell v3 6/9] arm: mvebu: spl: Print srcaddr in error message Date: Tue, 14 Dec 2021 14:22:19 +0100 Message-Id: <20211214132222.21324-7-kabel@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211214132222.21324-1-kabel@kernel.org> References: <20211214132222.21324-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.38 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.2 at phobos.denx.de X-Virus-Status: Clean From: Marek BehĂșn Print the wrong srcaddr (spl_image->offset) in error message also for SATA case. Signed-off-by: Marek BehĂșn Reviewed-by: Stefan Roese --- arch/arm/mach-mvebu/spl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index af9e45ac7a..af22d4565a 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -190,7 +190,8 @@ int spl_parse_board_header(struct spl_image_info *spl_image, */ if (mhdr->blockid == IBR_HDR_SATA_ID) { if (spl_image->offset < 1) { - printf("ERROR: Wrong SATA srcaddr in kwbimage\n"); + printf("ERROR: Wrong srcaddr (%u) in SATA kwbimage\n", + spl_image->offset); return -EINVAL; } spl_image->offset -= 1; -- 2.32.0