From patchwork Thu Aug 28 22:16:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 171 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=1756419471; bh=viifMwawyFRpRFb05iEJbL54E70NmeFPCIFzh80odt8=; 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=mmBDzNJPIcknXvxA/OB27q1cOViEbvVhs7TZspVrruUTylvrkkeU0IlBhfk8pQ/Pc rm21mE0dQNI9ccIqS3XQ/MrWoIFp7au9hY260DOEJ7+gsEARjAE9ozMEjc84BXkMxU FvXtekV7NAW5aT1j7bNtSsBzzMnexA3b2EOLTwJLGVQaZem2X8UmsYj5cqLkcwk0if DQ2cBuI7ejQpYWLaX59spTyFxuDuoWA5dTvk4rAI3rRLRY/ZfYENXURuaeaHYgjErH 2eQWOK0gD5DRoFFAoeZ+XEv7AxIKFc9ceuzs/+ZmffiwS7KTiYPNoELFwZa+Zoa/5R lL5+fkCi5g40Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7E85A675BB for ; Thu, 28 Aug 2025 16:17:51 -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 6BHSooRWZ_yA for ; Thu, 28 Aug 2025 16:17:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756419471; bh=viifMwawyFRpRFb05iEJbL54E70NmeFPCIFzh80odt8=; 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=mmBDzNJPIcknXvxA/OB27q1cOViEbvVhs7TZspVrruUTylvrkkeU0IlBhfk8pQ/Pc rm21mE0dQNI9ccIqS3XQ/MrWoIFp7au9hY260DOEJ7+gsEARjAE9ozMEjc84BXkMxU FvXtekV7NAW5aT1j7bNtSsBzzMnexA3b2EOLTwJLGVQaZem2X8UmsYj5cqLkcwk0if DQ2cBuI7ejQpYWLaX59spTyFxuDuoWA5dTvk4rAI3rRLRY/ZfYENXURuaeaHYgjErH 2eQWOK0gD5DRoFFAoeZ+XEv7AxIKFc9ceuzs/+ZmffiwS7KTiYPNoELFwZa+Zoa/5R lL5+fkCi5g40Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6EF8467764 for ; Thu, 28 Aug 2025 16:17:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756419469; bh=Kw/wjk4jK0t/DU5kAbS7vZ9IijDru5BRSoFwRAuZSsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=On154hhTswPjAexBhb5EmqqWbxcNTfOOFxYOb6IbSw9xqAcMuHMhQFBgp0D9kvrS4 0xk2huLKmbhKI61kmU2OK6aMPdcWBjB149/vmIHLH3Qj+7qNC1eZCiNWDuzov5ka/B tfdbmuP0sy4Y/nwf8udHPaQp2RkUuFN9wIBCYjR3g80J0iSjBdqEJRMXFsn0GgCBrI NeBNAzyLgD+HBOHObxTshNNErxspgnVqwh7hM4IGMIjFGs2th6DFxwJEKK1DsRDecS IVRrJKcGsQCFy4gaUallKqEx0emJt9Il65wGrk/2ZvzGV9CTbBkk5BFtXf35CQa8qe sP4bnBDf391Lw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2E3FD675BB; Thu, 28 Aug 2025 16:17:49 -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 Y8fkxo0R6JIV; Thu, 28 Aug 2025 16:17:49 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756419464; bh=1eu0WVliwf5PbFs4pbFIB/ZijhGtOswvxEFP/KPXyuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=leLwNNg23LLPK7OITHmB6ic1Fa92i4stk30p5cE+Yk0sYFLcujiY9DA+pJzilVKlw r8CNkVLT7lkCEH1Pw9qjz2H3heOwex7PENmRciUwZf4f1uuEYHfoA63/yLIdPhcU29 mUOGSq/F1M2awPBeG1S8I66e8RTyvPWLBEktJ4vSQBKFhgpzpBcHTK0cB+gOEdrPY1 bWwQRrtXWVGxWyvTt58M/FxP+8AsoYCl7sRBpWhrjckmxOSFd0OI0GyAs0Z4lLz9Ky O+45L9XppzGNbOWj/S3eDE+NEh6Xay23sr5iyxYUEz2RBuj90FJfII+L2WlyiaSskS 81EODMLrg9snQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 07BEC67764; Thu, 28 Aug 2025 16:17:43 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Thu, 28 Aug 2025 16:16:54 -0600 Message-ID: <20250828221713.3218908-9-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250828221713.3218908-1-sjg@u-boot.org> References: <20250828221713.3218908-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: RCZEMPXEI4MY44A555I2J2RWYNOZTQRT X-Message-ID-Hash: RCZEMPXEI4MY44A555I2J2RWYNOZTQRT 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 8/8] efi: Set the log category throughout lib/efi_client/ 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 All files in this directory relate to EFI, so set the log category consistently. Signed-off-by: Simon Glass --- lib/efi_client/app_run.c | 2 ++ lib/efi_client/efi.c | 2 ++ lib/efi_client/efi_info.c | 2 ++ lib/efi_client/efi_vars.c | 2 ++ lib/efi_client/sdram.c | 2 ++ lib/efi_client/stub.c | 2 ++ lib/efi_client/stub_arm64.c | 1 + lib/efi_client/stub_x86.c | 2 ++ lib/efi_client/sync_dt.c | 2 ++ 9 files changed, 17 insertions(+) diff --git a/lib/efi_client/app_run.c b/lib/efi_client/app_run.c index 9fc753ceed8..de2c6b8bdd2 100644 --- a/lib/efi_client/app_run.c +++ b/lib/efi_client/app_run.c @@ -6,6 +6,8 @@ * Copyright 2024 Canonical Ltd */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include diff --git a/lib/efi_client/efi.c b/lib/efi_client/efi.c index 12a646a36b7..083ad1f423c 100644 --- a/lib/efi_client/efi.c +++ b/lib/efi_client/efi.c @@ -10,6 +10,8 @@ * Common EFI functions */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include diff --git a/lib/efi_client/efi_info.c b/lib/efi_client/efi_info.c index a0d7d3b5d7d..5ff98e8829e 100644 --- a/lib/efi_client/efi_info.c +++ b/lib/efi_client/efi_info.c @@ -5,6 +5,8 @@ * Access to the EFI information table */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include diff --git a/lib/efi_client/efi_vars.c b/lib/efi_client/efi_vars.c index 4fc48b90d6c..9764a9802a4 100644 --- a/lib/efi_client/efi_vars.c +++ b/lib/efi_client/efi_vars.c @@ -4,6 +4,8 @@ * */ +#define LOG_CATEGORY LOGC_EFI + #define __efi_runtime #include diff --git a/lib/efi_client/sdram.c b/lib/efi_client/sdram.c index bd59dfade0f..357ca095f86 100644 --- a/lib/efi_client/sdram.c +++ b/lib/efi_client/sdram.c @@ -3,6 +3,8 @@ * Copyright (c) 2015 Google, Inc */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include diff --git a/lib/efi_client/stub.c b/lib/efi_client/stub.c index 01d62c3e5c9..3e3ea91f915 100644 --- a/lib/efi_client/stub.c +++ b/lib/efi_client/stub.c @@ -8,6 +8,8 @@ * Provides helper functions for use with the stub */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include diff --git a/lib/efi_client/stub_arm64.c b/lib/efi_client/stub_arm64.c index 0e579a17a75..3184be64cd0 100644 --- a/lib/efi_client/stub_arm64.c +++ b/lib/efi_client/stub_arm64.c @@ -9,6 +9,7 @@ * Call ExitBootServices() and launch U-Boot from an EFI environment. */ +#define LOG_CATEGORY LOGC_EFI #include #include #include diff --git a/lib/efi_client/stub_x86.c b/lib/efi_client/stub_x86.c index fac55fa8f32..b223c36c798 100644 --- a/lib/efi_client/stub_x86.c +++ b/lib/efi_client/stub_x86.c @@ -9,6 +9,8 @@ * EFI application. It can be built either in 32-bit or 64-bit mode. */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include diff --git a/lib/efi_client/sync_dt.c b/lib/efi_client/sync_dt.c index f191a31125f..44627451dae 100644 --- a/lib/efi_client/sync_dt.c +++ b/lib/efi_client/sync_dt.c @@ -5,6 +5,8 @@ * Copyright 2025 Simon Glass */ +#define LOG_CATEGORY LOGC_EFI + #include #include #include