From patchwork Tue Sep 2 15:21:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 176 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=1756826545; 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=d5za8Y9u+S5sBAPZnXzGZdq3nOGHrHToaPs2s2TTL8ziUWoqK4BBuJ3MHMIu9XlUn B2JwP8VxfWfgiibx2sLshesuE5lIaDG5yCHKKL2MThbS78J67sWIFQkara9aOACfWa YE3gV5oWlziJJlZiX995AwPJ9wG74VJ7Z0cisZaURnvAGUKecuIh8wFtuwFw+Kn0B2 V1nlM+b+7lZaeQmQxveU7n9gBrVR9aQDXtixpm97VXgTWJKMoufzjzl+U9J8nSsmoZ /e9IGbYhAz7UREEs0M99iBgBTFYTWO9cyXqE1zFW1O9yyg5CfnyckhnTdR8z8EhnEh VpfWwPUlCk54A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6A426678E9 for ; Tue, 2 Sep 2025 09:22:25 -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 3mVD0EPC8FNi for ; Tue, 2 Sep 2025 09:22:25 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826543; 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=onSyKdn53NnwoGB6+9MKdCX13aUfGpLvnXS/Ik2fPYG7bONiuQnlVmt6wA/oA2lGf waP+/BV2ABjSKuKri/f+mva+e/xqA718wYuq3rFZgcSGMNUroeYljN2DQfYBmCrv5D bipqYyuf7H6QWGLcql+RnRGk4GhhsZEyIW+3S9lu/DpwzQtQreN6CCgc0PP+NGadwa E3nuTd/4vWEhqVLIIULkHZTeb0zuOwhy5kMhedMUKvuvIuP9/wWBDXg4lWEUpTM+kb nRhxqnhDi4GTMlZkYzefNhacY1FKYNtRu7rQc/lyW7WScOfnPA9c5tjHS/XFpFGqPi Z+yUU1kh0SXnw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E8B4867864 for ; Tue, 2 Sep 2025 09:22:23 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826541; bh=Kw/wjk4jK0t/DU5kAbS7vZ9IijDru5BRSoFwRAuZSsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ppigznM93gFV2JkFky2JjC40w8WOzLzQz/rc9S+MwCFOKAJYk8nYOOG4Mb3Xht4P4 R7ecZg+L95JFrv3VDI2kJuSlgN3/7jUUk1nXL7sF9p7Ryifcc9yV/RzWbLOp5KiNBX h7OXBB3uPOD8AcwwbGqnWTdLJe5T2cFCJtDFCZ3/1eRNiMJya/0XUnwJmXzqgeQgEB +bkzt1kpBNf/K3/UJ8tyfffRFV/4N+D6c14psbBPaCXvtKVZnkBCZYTLM5dYvvSdTC x4ZrGRw7rDVyzwaxpdCCmBi43gbvaQpcHwL+qZJVIcKqDltJQswr0eeKARuiX1vwrw me7GJS+ZR2drQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0543F678B0; Tue, 2 Sep 2025 09:22:21 -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 f1sSMZwyJ5qh; Tue, 2 Sep 2025 09:22:20 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826533; bh=1eu0WVliwf5PbFs4pbFIB/ZijhGtOswvxEFP/KPXyuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n7PL56T+67OuEOJsSf3y+Rc2cDcDH72UCvnV8OHRQm/tOOl+ICLL0KIjyum/sKyZJ 6r0E8CWEYyEBuccZ7MSgT6agP8PVCa1neKj+HIqY2AAbKRcZci13UhBvIKb8scylsU kfRVBPKgrNKfP2Jqzwb3slXYSoDwLamOMl4qmIzOkzsoRVYn3d7cOCwVqShL6Lr2J6 f25sCFsJfuqw/BTPqMnzsAdAFgZiA4ZDSTZNgdeoMNsWUBzIvn3lRxhRY7tzcqaki2 qCkFe/+T7uhdZCvPNARgcA76lmiFo5GZdkIrtlx0ghNDBxYg3j1o2JLyF/ptaFArhe xzaPu8iJtV2Ng== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 482275FE1B; Tue, 2 Sep 2025 09:22:13 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 2 Sep 2025 09:21:36 -0600 Message-ID: <20250902152158.2285264-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250902152158.2285264-1-sjg@u-boot.org> References: <20250902152158.2285264-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: EETN4HBTUFSIICWTZGCJ2IZ2ZIOIAIK2 X-Message-ID-Hash: EETN4HBTUFSIICWTZGCJ2IZ2ZIOIAIK2 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 04/18] 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