diff mbox

[U-Boot] common: cmd_bdinfo: fix type of value in print_lnum

Message ID 1349289371-17160-1-git-send-email-daniel.schwierzeck@gmail.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Daniel Schwierzeck Oct. 3, 2012, 6:36 p.m. UTC
From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

This fixes a warning when compiling with ELDK-5.2.1 for MIPS64:

cmd_bdinfo.c: In function 'print_lnum':
cmd_bdinfo.c:56:2: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'u64' [-Wformat]

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

---
 common/cmd_bdinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Oct. 9, 2012, 5:17 p.m. UTC | #1
On Wed, Oct 03, 2012 at 08:36:11AM -0000, Daniel Schwierzeck wrote:

> From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> 
> This fixes a warning when compiling with ELDK-5.2.1 for MIPS64:
> 
> cmd_bdinfo.c: In function 'print_lnum':
> cmd_bdinfo.c:56:2: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'u64' [-Wformat]
> 
> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

Applied to u-boot/next, thanks!
diff mbox

Patch

diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 23bd8a5..286c8c8 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -51,7 +51,7 @@  static void print_eth(int idx)
 }
 
 __maybe_unused
-static void print_lnum(const char *name, u64 value)
+static void print_lnum(const char *name, unsigned long long value)
 {
 	printf("%-12s= 0x%.8llX\n", name, value);
 }