From patchwork Tue Aug 19 18:58:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 20 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630064; bh=o/c+DrTb2VuOppPHQ7e1b+ihhJQz/e/4NZ2pjKdUBU0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=pbXG8RpoAx6n1oE/uS0+XroZ2VmUTiU0CnEIOLm16T8qknuyDjNW2eOKZjcB4baK3 VzwyNvms2gmfvxY7HA+X1BJudFX6YoUTUuSudHjUXNMHYQh1fQyfPt4mUTK5gz/cok DVhlMX0QWhU/p4IPkJiqXBbSUePLaKH5KpLok10iBc/BxFg2L6s9pOmQuaNImJaVSu Bi6JsJ0+ZPVIN66AICAbwfrl0RBKrin9OV9A1OVXjVduR6CUS9HJgPcvXMnaHmZ7RR +IYif2WLFpJ3Ma4RlU6kDmCUNJ1ddqR+0ezsRmuHPXKqzJKgb1W9Mk0WdQIrSXY6YN Tq1n8iWHiKN8Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D0FB1675F4 for ; Tue, 19 Aug 2025 13:01:04 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 8DElqT3kb3vV for ; Tue, 19 Aug 2025 13:01:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630063; bh=o/c+DrTb2VuOppPHQ7e1b+ihhJQz/e/4NZ2pjKdUBU0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Xn+MJg8K5L81aW3/IFUSO/JArxDHpml8sqzoMKlDndPRMiLUsCA6aXGCUVTUQZXxn iM5dhTDkDcHHHZ2hTlkBPEwvBF9VyOp/2Wk5jj82dByKYioBt956e6agzHeZgvUPNn hc7/sLMoPATKunO7Rs8y9MraxVJoAYftFBaYAW6QzbHFsEEwmMzTHjZPwpdX5NRy+4 p5Fg/7TLCWchwXVfXb/fxKCZzqZpYMpiJMqPq/CaBH+YtaBEqrK+HmHQzVeL/kdnqv wOXBeaoNugSm5lt77Fn1JZoZCccKQANqm7FFsQlVKGaxiqNtcPXtLEXqQqxhImFtkG p4O3sCkwai3Cw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9207A675F8 for ; Tue, 19 Aug 2025 13:01:03 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630062; bh=n8nnaFa03ux0UVNNAU4x6A5dniGls7rjLIuYPDru3Rg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rN9mqe5rkLBxMcFKHQY6dcjVItARn8cPaiWDG8RrCn/cR+RU88E4a04ACPNqYdYca iYZ7tWLdhALlGYfsraYxhjx5WuWLCMH7T1T3UfqwOv520Hl+UPyquv7VWeaxgOAB7J 7Yisp8MEBae6JmfmeLiFApcfO1EXmwkAeCTOK5H6Z0a6N1hxSIzpx+dArMtZIZks12 lp0CG3EZScNDQgSBmtw0aE8gtZfwvlRot2DyP+atV73vRMLngBPwxFa8I4K4GgbdVv yPPKLLnDjHthKr0vOHbOMB4QU3MF32/Zwcy9cK4L9Orcy9LPzKRPAQIKNJQ7MMC5+T hNBB52wFkA7Jw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2DCEA675F4; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id ITsSBfv5RD9x; Tue, 19 Aug 2025 13:01:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755630055; bh=j9JHg+safhXa7n0YgIP5j1sDjpXC4c77SekQF0N00Sw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hfOwYReIbQ5C+Hcjuim+BtDyZgCMFU1A4XcjecHZn97CuPFKc/0qX5Nn+tZi6oHf0 0DDWuRkZx2NzA87fdO26L6vXFPdBU71dKT9aM1fWtqXEORzI24ECziytPXtYxjU840 112Zurs0ygv1LIYKllrnDslgXeeuLpVCE5xWbiE9oKzZViDr59WuyDaq9FLsa4YP4n w89ulWufe2f9NN10eTNSv5kVSBsUUoZ/oo7IS3VH2A0joCZa+uZW/W0BwTWz6wXc5Y ZFL1WK6RooKFFdhYiBpoe6UW5oWkSANFwoAnUqBAvAnp/xVqm9Ve074JpTenzAW51z Ikbfk95GpbmVA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D5692675F8; Tue, 19 Aug 2025 13:00:54 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 12:58:49 -0600 Message-ID: <20250819185900.835939-19-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819185900.835939-1-sjg@u-boot.org> References: <20250819185900.835939-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: X6MMHR3CLV56EFXHQRRD3SDHBVZA4SEG X-Message-ID-Hash: X6MMHR3CLV56EFXHQRRD3SDHBVZA4SEG X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 18/22] efi: app: Only show the memory map when debugging List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass This is quite a long dump and is only useful when debugging. Show it only if LOG_DEBUG is defined in this file. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_client/efi_app.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 942c7ab5133..28f6610e0eb 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -8,6 +8,8 @@ * This file implements U-Boot running as an EFI application. */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include @@ -307,7 +309,9 @@ int ft_system_setup(void *fdt, struct bd_info *bd) if (ret) return log_msg_ret("erm", ret); - efi_dump_mem_table(map, size, desc_size, false); + if (_DEBUG) + efi_dump_mem_table(map, size, desc_size, false); + ram_start = -1ULL; ram_end = -1ULL; end = (void *)map + size;