]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: cmd_bdinfo: Fix compilation warning for microblaze
authorMichal Simek <michal.simek@xilinx.com>
Wed, 23 Jan 2013 13:15:35 +0000 (14:15 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 4 Feb 2013 11:09:50 +0000 (12:09 +0100)
Fix one printf compilation warning in microblaze bdinfo part.

Warning log:
cmd_bdinfo.c: In function 'do_bdinfo':
cmd_bdinfo.c:219:2: warning: format '%u' expects argument of type
'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
common/cmd_bdinfo.c

index 65a5e080624d55a874f0a8dadce96f1a446f5a07..28b52414cf417a87a27fb17d12486111e7a319f1 100644 (file)
@@ -216,7 +216,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #if defined(CONFIG_CMD_NET)
        print_eths();
 #endif
-       printf("baudrate    = %u bps\n", (ulong)bd->bi_baudrate);
+       printf("baudrate    = %u bps\n", bd->bi_baudrate);
        return 0;
 }