[PATCH 34/35] efi: Show when allocated pages are used

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Sep 8 20:25:51 CEST 2021



On 9/8/21 3:34 PM, Simon Glass wrote:
> Add a message here so that both paths of memory allocation are reported.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>   lib/efi/efi_app.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c
> index e0666d1fae2..c8f4784eb7d 100644
> --- a/lib/efi/efi_app.c
> +++ b/lib/efi/efi_app.c
> @@ -97,6 +97,7 @@ static efi_status_t setup_memory(struct efi_priv *priv)
>   			return ret;
>   		priv->use_pool_for_malloc = true;
>   	} else {
> +		printf("(using allocated RAM address %lx) ", (ulong)addr);

Shouldn't this be log_debug()?

Best regards

Heinrich

>   		priv->ram_base = addr;
>   	}
>   	gd->ram_size = pages << 12;
>


More information about the U-Boot mailing list