diff options
author | Marek Vasut <marex@denx.de> | 2012-09-15 10:33:51 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-15 11:53:57 -0700 |
commit | f1f1e9cb7337e9ee6a7d6aeb1f76eb67f4dd126c (patch) | |
tree | 15b10fcdd1d513dba500c2ba7d8dc59995ba69f4 /drivers/serial/ns16550.c | |
parent | 320de1354f1c8157f7d6dd7753e46cec3a418089 (diff) | |
download | u-boot-imx-f1f1e9cb7337e9ee6a7d6aeb1f76eb67f4dd126c.zip u-boot-imx-f1f1e9cb7337e9ee6a7d6aeb1f76eb67f4dd126c.tar.gz u-boot-imx-f1f1e9cb7337e9ee6a7d6aeb1f76eb67f4dd126c.tar.bz2 |
serial: Use puts() and hang() instead of panic() in SPL
If case the get_current() call fails before relocation, the U-Boot
must try to print an error message, fail and either reset or halt.
Such error is critical enough to halt the system, as it means the
system is in very bad state.
This is now also used in SPL, since CONFIG_SERIAL_MULTI is enabled
unconditionally. To avoid compiling whole vsprintf.c into SPL, use
puts() to print error message and hang() to stop the system in case
of SPL build.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/serial/ns16550.c')
0 files changed, 0 insertions, 0 deletions