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 B051DC433EF for ; Thu, 26 May 2022 12:36:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5217D842C4; Thu, 26 May 2022 14:36:32 +0200 (CEST) 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="ETR3nS2Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2313C842BC; Thu, 26 May 2022 14:36:31 +0200 (CEST) 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 877808430E for ; Thu, 26 May 2022 14:36:28 +0200 (CEST) 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 927456199F; Thu, 26 May 2022 12:36:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4A58C385A9; Thu, 26 May 2022 12:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653568586; bh=beq8PHkv5MGG0VctKX/DLX7v7Z/D4GF/JMqPTe2Ckkg=; h=From:To:Cc:Subject:Date:From; b=ETR3nS2Yltb8tXTMmkBwwV2yF0TG+fQmF/0e30OQqIc3At/XtB/5a5IyhhJd2BGX4 I58JRUAc8uObhFrzLWXdmgtfXcU5+ueDzftpIJZ+KCH5GY16fkqjYiTkQx68I6ceCA ZBRyucZVftiC41KSLXEu7k7vkWfhAxWXyOzP6z5HOd843P5Pjd/HPqkLxWYy93PN1T cntsbM+mup797N0umlj3F4OLAPuJu4vMra12UGzLR383KBVTymoactf1WB4PwYcydC LF8BX3oQNQaPBotB9D4sR9bVKIuuZBsphqlFuG+QRlpiIt4ZFcQcGjCFucqtPNtzPR pxaoAnvapPWqw== Received: by pali.im (Postfix) id A9B794F8; Thu, 26 May 2022 14:36:22 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Wolfgang Denk Cc: u-boot@lists.denx.de Subject: [PATCH] powerpc: bootm: Fix sizes in memory adjusting warning Date: Thu, 26 May 2022 14:36:03 +0200 Message-Id: <20220526123603.14634-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 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 Old size is stored in size variable and new size is in bootm_size variable. Signed-off-by: Pali Rohár --- arch/powerpc/lib/bootm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c index 8d65047aa4d4..2704f6562803 100644 --- a/arch/powerpc/lib/bootm.c +++ b/arch/powerpc/lib/bootm.c @@ -137,7 +137,8 @@ void arch_lmb_reserve(struct lmb *lmb) if (size < bootm_size) { ulong base = bootmap_base + size; - printf("WARNING: adjusting available memory to %lx\n", size); + printf("WARNING: adjusting available memory from 0x%lx to 0x%llx\n", + size, (unsigned long long)bootm_size); lmb_reserve(lmb, base, bootm_size - size); } -- 2.20.1