]> git.baikalelectronics.ru Git - uboot.git/commit
console: execute flush on uart when silent is removed
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 2 Aug 2019 12:58:10 +0000 (14:58 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 7 Aug 2019 19:31:05 +0000 (15:31 -0400)
commit332a146ff8a7fdb2da19750edefc0f9872ccd26f
tree190ab202eb08e625f997a21acca2fa0bbd98aa49
parent998b1640ae8a188ffbf747e6c752759a28862f4e
console: execute flush on uart when silent is removed

Avoid to flush buffer when silent console is activated as the
console can be reactivate later, after relocation, when the env will
be updated with the saved one.

Solve issue (missing beginning of U-Boot trace) when:
- CONFIG_SILENT_CONSOLE is activated
- silent=1 is defined in default environment (CONFIG_EXTRA_ENV_SETTINGS)
- silent is removed in saved environment with:
      > env delete silent; env save

Only functional when PRE_CONSOLE_BUFFER is activated.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
common/console.c