console: add warning message if slient console is enabled

Change-Id: Ibc50e9bc19c77bb688a0312c1d1290250a9b6a2f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-06-14 10:55:46 +08:00 committed by Jianhong Chen
parent 541f90ebf1
commit c2304c02b1
1 changed files with 4 additions and 2 deletions

View File

@ -666,10 +666,12 @@ int console_assign(int file, const char *devname)
static void console_update_silent(void)
{
#ifdef CONFIG_SILENT_CONSOLE
if (env_get("silent") != NULL)
if (env_get("silent") != NULL) {
printf("U-Boot: enable slient console\n");
gd->flags |= GD_FLG_SILENT;
else
} else {
gd->flags &= ~GD_FLG_SILENT;
}
#endif
}