On 25.11.24 21:44, Simon Glass wrote:
Update efi_allocate_pool_ext() to log the pointer returned from this
call, which can be helpful when debugging.
Signed-off-by: Simon Glass <s...@chromium.org>
---
lib/efi_loader/efi_boottime.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 080e7f78ae3..90437e3e401 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -511,6 +511,9 @@ static efi_status_t EFIAPI efi_allocate_pool_ext(int
pool_type,
EFI_ENTRY("%d, %zu, %p", pool_type, size, buffer);
r = efi_allocate_pool(pool_type, size, buffer);
+ if (r == EFI_SUCCESS)
+ log_debug("*buffer = %p\n", *buffer);
Please, use EFI_PRINT() which will provide indentation.
Best regards
Heinrich
+
return EFI_EXIT(r);
}