]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common: cmd_bdinfo: fix type of value in print_lnum
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 3 Oct 2012 08:36:11 +0000 (08:36 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:04 +0000 (11:54 -0700)
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

index 23bd8a5098a1c28ad9612ae10701865ec298ffff..286c8c80113f69233369efce667aae45c8d6befd 100644 (file)
@@ -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);
 }