[Concept,8/8] efi: Set the log category throughout lib/efi_client/

Message ID 20250828221713.3218908-9-sjg@u-boot.org
State New
Headers
Series efi: A few minor improvements |

Commit Message

Simon Glass Aug. 28, 2025, 10:16 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

All files in this directory relate to EFI, so set the log category
consistently.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 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(+)
  

Patch

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 <bootm.h>
 #include <dm.h>
 #include <efi.h>
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 <debug_uart.h>
 #include <errno.h>
 #include <malloc.h>
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 <efi.h>
 #include <efi_loader.h>
 #include <efi_stub.h>
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 <errno.h>
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 <efi.h>
 #include <init.h>
 #include <asm/global_data.h>
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 <debug_uart.h>
 #include <efi.h>
 #include <efi_api.h>
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 <debug_uart.h>
 #include <efi.h>
 #include <efi_api.h>
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 <debug_uart.h>
 #include <efi.h>
 #include <efi_api.h>
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 <sjg@chromium.org>
  */
 
+#define LOG_CATEGORY	LOGC_EFI
+
 #include <efi.h>
 #include <efi_api.h>
 #include <fdt_support.h>