common: cmd_bdinfo: Fix compilation warning for microblaze

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>
master
Michal Simek 12 years ago
parent 151eeeb275
commit 82b6a4764c
  1. 2
      common/cmd_bdinfo.c

@ -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;
}

Loading…
Cancel
Save