summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-29 11:57:49 -0700
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-12-31 07:02:06 +0100
commit62725e661a17d1c3f3784f115917560c1126aeaa (patch)
treebf96452f7861200660d6d4f0ac235503bb075919 /lib
parentcf376037e232869fd86cf2658bdf297fbe004055 (diff)
downloadu-boot-62725e661a17d1c3f3784f115917560c1126aeaa.tar.gz
u-boot-62725e661a17d1c3f3784f115917560c1126aeaa.tar.bz2
u-boot-62725e661a17d1c3f3784f115917560c1126aeaa.zip
efi: Show when allocated pages are used
Add a message here so that both paths of memory allocation are reported. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi/efi_app.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c
index 32ed5a0d04..d60f2f6c28 100644
--- a/lib/efi/efi_app.c
+++ b/lib/efi/efi_app.c
@@ -106,13 +106,14 @@ static efi_status_t setup_memory(struct efi_priv *priv)
ret = boot->allocate_pages(EFI_ALLOCATE_MAX_ADDRESS,
priv->image_data_type, pages, &addr);
if (ret) {
- printf("(using pool %lx) ", ret);
+ log_info("(using pool %lx) ", ret);
priv->ram_base = (ulong)efi_malloc(priv, CONFIG_EFI_RAM_SIZE,
&ret);
if (!priv->ram_base)
return ret;
priv->use_pool_for_malloc = true;
} else {
+ log_info("(using allocated RAM address %lx) ", (ulong)addr);
priv->ram_base = addr;
}
gd->ram_size = pages << 12;