spl: Adjust debugging and xPL symbols
authorSimon Glass <sjg@chromium.org>
Sun, 26 Jan 2025 18:43:15 +0000 (11:43 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 3 Feb 2025 22:00:42 +0000 (16:00 -0600)
The size of some malloc() fields has reduced on 64-bit machines, but
the spl_reloc code was not updated. Fix this to avoid a compiler
warning.

Also update for the new xPL naming.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl_reloc.c

index be8349b..324b98e 100644 (file)
@@ -154,7 +154,7 @@ int spl_reloc_jump(struct spl_image_info *image, spl_jump_to_image_t jump)
        rcode_func loader;
        int ret;
 
-       log_debug("malloc usage %lx bytes (%ld KB of %d KB)\n", gd->malloc_ptr,
+       log_debug("malloc usage %x bytes (%d KB of %d KB)\n", gd->malloc_ptr,
                  gd->malloc_ptr / 1024, CONFIG_VAL(SYS_MALLOC_F_LEN) / 1024);
 
        if (*image->stack_prot != STACK_PROT_VALUE) {