[PATCH] booti: Use %pa to print a resource_size_t

Sascha Hauer s.hauer at pengutronix.de
Wed Mar 4 02:50:42 PST 2026


printing a resource_size_t with %llx leads to warnings on 32bit arm. Use
%pa instead.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/booti.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/booti.c b/common/booti.c
index ba7e6081e6..9b97a6f815 100644
--- a/common/booti.c
+++ b/common/booti.c
@@ -59,8 +59,8 @@ void *booti_load_image(struct image_data *data, phys_addr_t *oftree)
 
 	kernel = get_kernel_address(data->os_address, text_offset, &end);
 
-	pr_debug("Kernel (size: %lx) to be loaded into %lx+%llx\n",
-		 image_size, kernel, end);
+	pr_debug("Kernel (size: %lx) to be loaded into %lx+%pa\n",
+		 image_size, kernel, &end);
 
 	if (kernel == UIMAGE_INVALID_ADDRESS)
 		return ERR_PTR(-ENOENT);
-- 
2.47.3




More information about the barebox mailing list