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 4F5B7C433EF for ; Fri, 26 Nov 2021 14:39:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C774D83762; Fri, 26 Nov 2021 15:38:33 +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="JzuysCFB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8E0A4834AC; Fri, 26 Nov 2021 15:38:11 +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 EEDF183757 for ; Fri, 26 Nov 2021 15:37:54 +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 ams.source.kernel.org (Postfix) with ESMTPS id 9860DB827E9; Fri, 26 Nov 2021 14:37:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24D18C9305D; Fri, 26 Nov 2021 14:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637937473; bh=b6E7AUW6hvT0u/sKpzSJoOuBQ3jj5v0d6ERB4mp2RUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JzuysCFBSKPrRa4ElCTSOuK7NZ8O3M2h9RjL6YUxHYNLWUKomarmtN/w/WAjV6Ju/ f99pRWfF8+VwSrtN8SrMs3za+9ip9/XmPcEygfrOkpSraVblknMJLmhm1E0HN0+e+3 rttxVhqSUMrC1ST60Qs6urXFe//BuaMD1ndq6f7oWCEA6xwYKGdkJb6+nPFZj+Yusr G2duFF7ZRVLtl/80Z/smbp3Q4GSSZ0UrvhMrimLTvClhrzJfY+Tg7DOMRvrxuRuGCk t7aMJ6GyYw4Tk3QQZ+qyMykVwAz/vryC2n5ekLH0VcjmSh7sVe8YAc54MpyIv4+Q4I NbLJ2B3JLT0NQ== 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 v2 6/9] arm: mvebu: spl: Print srcaddr in error message Date: Fri, 26 Nov 2021 15:37:35 +0100 Message-Id: <20211126143738.23830-7-kabel@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211126143738.23830-1-kabel@kernel.org> References: <20211126143738.23830-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.37 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 --- 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..8c8cbc833f 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 SATA srcaddr (%u) in kwbimage\n", + spl_image->offset); return -EINVAL; } spl_image->offset -= 1; -- 2.32.0