Re: [U-Boot] [PATCH v6 02/20] Fix use of int as pointer in image.c

2011-10-17 Thread Wolfgang Denk
Dear Simon Glass,

In message <1318270953-32482-3-git-send-email-...@chromium.org> you wrote:
> It is better to use %p in this case.
> 
> Signed-off-by: Simon Glass 
> Acked-by: Mike Frysinger 
> ---
> Changes in v2:
> - Split this change out from 'Add architecture image support'
> 
>  common/image.c |4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Do you know about being with somebody? Wanting to be? If  I  had  the
whole  universe,  I'd  give it to you, Janice. When I see you, I feel
like I'm hungry all over. Do you know how that feels?
-- Charlie Evans, "Charlie X", stardate 1535.8
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v6 02/20] Fix use of int as pointer in image.c

2011-10-10 Thread Simon Glass
It is better to use %p in this case.

Signed-off-by: Simon Glass 
Acked-by: Mike Frysinger 
---
Changes in v2:
- Split this change out from 'Add architecture image support'

 common/image.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/image.c b/common/image.c
index d38ce4a..fc475cd 100644
--- a/common/image.c
+++ b/common/image.c
@@ -1581,7 +1581,7 @@ int boot_get_fdt (int flag, int argc, char * const 
argv[], bootm_headers_t *imag
goto error;
}
 
-   printf ("   Booting using the fdt blob at 0x%x\n", 
(int)fdt_blob);
+   printf("   Booting using the fdt blob at 0x%p\n", fdt_blob);
 
} else if (images->legacy_hdr_valid &&
image_check_type (&images->legacy_hdr_os_copy, 
IH_TYPE_MULTI)) {
@@ -1600,7 +1600,7 @@ int boot_get_fdt (int flag, int argc, char * const 
argv[], bootm_headers_t *imag
if (fdt_len) {
 
fdt_blob = (char *)fdt_data;
-   printf ("   Booting using the fdt at 0x%x\n", 
(int)fdt_blob);
+   printf("   Booting using the fdt at 0x%p\n", fdt_blob);
 
if (fdt_check_header (fdt_blob) != 0) {
fdt_error ("image is not a fdt");
-- 
1.7.3.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot