Skip to content
Snippets Groups Projects
Commit 82b6a476 authored by Michal Simek's avatar Michal Simek
Browse files

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: default avatarMichal Simek <michal.simek@xilinx.com>
parent 151eeeb2
No related branches found
No related tags found
No related merge requests found
...@@ -216,7 +216,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -216,7 +216,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_CMD_NET) #if defined(CONFIG_CMD_NET)
print_eths(); print_eths();
#endif #endif
printf("baudrate = %u bps\n", (ulong)bd->bi_baudrate); printf("baudrate = %u bps\n", bd->bi_baudrate);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment