diff mbox

[U-Boot,18/24] sandbox: Fix warning in display_options

Message ID 1430760687-28505-19-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass May 4, 2015, 5:31 p.m. UTC
This fixes a warning in the print_buffer() function with some toolchains.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/display_options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joe Hershberger May 4, 2015, 9:45 p.m. UTC | #1
Hi Simon,

On Mon, May 4, 2015 at 12:31 PM, Simon Glass <sjg@chromium.org> wrote:
> This fixes a warning in the print_buffer() function with some toolchains.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Simon Glass May 12, 2015, 10:41 p.m. UTC | #2
On 4 May 2015 at 15:45, Joe Hershberger <joe.hershberger@gmail.com> wrote:
> Hi Simon,
>
> On Mon, May 4, 2015 at 12:31 PM, Simon Glass <sjg@chromium.org> wrote:
>> This fixes a warning in the print_buffer() function with some toolchains.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> ---
> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/lib/display_options.c b/lib/display_options.c
index d5d17b2..495a547 100644
--- a/lib/display_options.c
+++ b/lib/display_options.c
@@ -123,7 +123,7 @@  int print_buffer(ulong addr, const void *data, uint width, uint count,
 			else
 				x = lb.uc[i] = *(volatile uint8_t *)data;
 #ifdef CONFIG_SYS_SUPPORT_64BIT_DATA
-			printf(" %0*" PRIx64, width * 2, x);
+			printf(" %0*llx", width * 2, (long long)x);
 #else
 			printf(" %0*x", width * 2, x);
 #endif