mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] booti: Use %pa to print a resource_size_t
@ 2026-03-04 10:50 Sascha Hauer
  2026-03-05  6:39 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2026-03-04 10:50 UTC (permalink / raw)
  To: Barebox List

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

Signed-off-by: Sascha Hauer <s.hauer@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] booti: Use %pa to print a resource_size_t
  2026-03-04 10:50 [PATCH] booti: Use %pa to print a resource_size_t Sascha Hauer
@ 2026-03-05  6:39 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-03-05  6:39 UTC (permalink / raw)
  To: Barebox List, Sascha Hauer


On Wed, 04 Mar 2026 11:50:42 +0100, Sascha Hauer wrote:
> printing a resource_size_t with %llx leads to warnings on 32bit arm. Use
> %pa instead.
> 
> 

Applied, thanks!

[1/1] booti: Use %pa to print a resource_size_t
      https://git.pengutronix.de/cgit/barebox/commit/?id=019645e2b1cf (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-05  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-04 10:50 [PATCH] booti: Use %pa to print a resource_size_t Sascha Hauer
2026-03-05  6:39 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox