]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
common: spl: fix compilation warning
authorLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 13 Aug 2025 06:16:35 +0000 (14:16 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 21 Aug 2025 16:02:45 +0000 (10:02 -0600)
Explicitly specify the type by replacing macro with variable
to fix the possible compilation warning.

Signed-off-by: Leo Yu-Chi Liang <ycliang@andestech.com>
common/spl/spl.c

index ed443c645a7b99a8f24a6e42f9df6b219be65ec6..55ad497c86daddce86320cd8205585d338636e08 100644 (file)
@@ -278,8 +278,8 @@ void spl_set_header_raw_uboot(struct spl_image_info *spl_image)
        } else {
                spl_image->entry_point = CONFIG_SYS_UBOOT_START;
                spl_image->load_addr = CONFIG_TEXT_BASE;
-               log_debug("Default load addr %x (u_boot_pos=%lx)\n",
-                         CONFIG_TEXT_BASE, u_boot_pos);
+               log_debug("Default load addr %lx (u_boot_pos=%lx)\n",
+                         spl_image->load_addr, u_boot_pos);
        }
        spl_image->os = IH_OS_U_BOOT;
        spl_image->name = xpl_name(xpl_next_phase());