From patchwork Wed Aug 20 14:46:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 85 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=1755701219; bh=ypIuGurvelJFVUHCxE5O2/PZ+TQ4HWfmQCYc+Nh9Yso=; 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=tqIrOoXdhCQJeKcuYnQmBeZTOcdJilvbv0QsbC7p0uM2OIlCpyUga8Xs8qQ22OGhe oezyijxqbDhRhgd6PNpvPYFRbTSSDha6kryxakjRuZ/DRP1G2qf2gGI1drnAY08045 5cAmpEM7rX3yS6WAbJ2x6MhMMe8mBqUXTnOoGubSuIOuGVzYTEkTVTRvEbrji1PEvg JOs9efno96kH0WZvXpgnBQPrYXZ240zSASghLgQlFmyDpuYaeRdnQzexFTbvcd7Kmz gJPxQyA8ZfHBrDXl5J5E7ExJwCkZUK0Ia9GqcvadPWFztfB6jo4ADQ2i2O1QSMwGoH O3cg5FeRICoXA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D78D267419 for ; Wed, 20 Aug 2025 08:46:59 -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 x3bGPUHgfiji for ; Wed, 20 Aug 2025 08:46:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701219; bh=ypIuGurvelJFVUHCxE5O2/PZ+TQ4HWfmQCYc+Nh9Yso=; 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=tqIrOoXdhCQJeKcuYnQmBeZTOcdJilvbv0QsbC7p0uM2OIlCpyUga8Xs8qQ22OGhe oezyijxqbDhRhgd6PNpvPYFRbTSSDha6kryxakjRuZ/DRP1G2qf2gGI1drnAY08045 5cAmpEM7rX3yS6WAbJ2x6MhMMe8mBqUXTnOoGubSuIOuGVzYTEkTVTRvEbrji1PEvg JOs9efno96kH0WZvXpgnBQPrYXZ240zSASghLgQlFmyDpuYaeRdnQzexFTbvcd7Kmz gJPxQyA8ZfHBrDXl5J5E7ExJwCkZUK0Ia9GqcvadPWFztfB6jo4ADQ2i2O1QSMwGoH O3cg5FeRICoXA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 62259676AE for ; Wed, 20 Aug 2025 08:46:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701216; bh=2pQiDz14ObtUtsIddGY0djTBCuIGlxP/s108VYj7mrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j+TAJ+4oGFBeVLGKOKrCHnDPhy8Ijxo1M220FxfZ6nmpKLvKzVBXsPsW+CwY+mqyB +Ep6BM8SqK/YomYah+3ADYZFsXPB/Sk9s3OJLgS0I1p7Vs6/d33R5fkTEypD5qe+Yt PJh1ukRM1u5DEm6tr6aqOG3Pql9Fh7UxbHclF7hKygVlWVkTOwBl2ZsSU0dxoypsfV /CQNqhXM6urbtw9gS4ioRjokz79cq1nZuA3XxWemAMmrHUua70cl+CLkWlOu6IzayR RHzsc/+CTx1TrURqqauCG5YRyEHNeappPmk6Oo1jUqQYvEw5FZRrrJlRWS+EG/gy6r 1NMUymT8uA55A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 62A05676A0; Wed, 20 Aug 2025 08:46:56 -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 E22OIqrIpnMf; Wed, 20 Aug 2025 08:46:56 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701208; bh=jLjHB5LKqInYpTdhmWcC3zLYmZpCRp2270QtSwUy97c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JgM07kDHfq025VPfR5rkWwIs5bVicyE0mHzZvdF6YhHJ3SwqMglTs2hJHdeEaawV3 uJ8FYkfp9qdWmii4EVla17O3er0udvEhqMcIuFyZlGe+W8IVWyIIiC9KghqcZRHJWN 1rkQtk7D2UiQe0FeS/ExtoEn1kcegS+acVYfGuhqzwAlkUA6GykvyExrnRcZq2bq33 HoSHrQf/mpl06Tg/uSYPPUlXtehMYg75ET3kRk7MEXON2Rpgfs5IXUoQ8nfLj5sKMH jWkpVS6JLYn9EMselFaI409hZ++z9OUpwxwBgD3Hu0kQdZ5b+6gLHCVxcOXwbkF5fj 3wPTHxr9QxbsQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 74673674F4; Wed, 20 Aug 2025 08:46:48 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Wed, 20 Aug 2025 08:46:09 -0600 Message-ID: <20250820144621.1073679-8-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250820144621.1073679-1-sjg@u-boot.org> References: <20250820144621.1073679-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: G56IFFMFUTPHABDM3LHNDGP35I4XKUA7 X-Message-ID-Hash: G56IFFMFUTPHABDM3LHNDGP35I4XKUA7 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: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 07/14] efi: Show the device name only with the EFI loader 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 The 'efidebug dh' command dereferences a handle to obtain the device name. The format of an EFI handle is not defined by the spec, so when running in the app we cannot assume that the handle can be dereferenced. Even if the EFI provider happens to be U-Boot it might be a different version. So don't try display the device name with the app. Signed-off-by: Simon Glass --- cmd/efidebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index a6a0e877798..cec4165a5e1 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -489,7 +489,7 @@ static int do_efi_show_handles(struct cmd_tbl *cmdtp, int flag, struct efi_handler *handler; printf("\n%p", handle); - if (handle->dev) + if (!IS_ENABLED(CONFIG_EFI_APP) && handle->dev) printf(" (%s)", handle->dev->name); printf("\n"); /* Print device path */