Home
last modified time | relevance | path

Searched hist:fd1360a339e84ccd49f8a2d8a42e4c131a681b3c (Results 1 – 2 of 2) sorted by relevance

/rk3399_ARM-atf/common/
H A Dtf_log.cfd1360a339e84ccd49f8a2d8a42e4c131a681b3c Tue Jul 20 21:57:47 UTC 2021 Pali Rohár <pali@kernel.org> feat(common/debug): add new macro ERROR_NL() to print just a newline

Existing macro ERROR() prints string "ERROR" followed by string
specified by caller. Therefore via this existing macro it is not
possible to end incomplete / existing line by a newline character.

This change adds a new macro ERROR_NL() which prints just a newline
character without any prefix. Implementation of this macro is done via a
new function tf_log_newline() which based on supplied log level either
return or print newline character.

If needed in future based on this tf_log_newline() function can be
defined also macros for other log levels.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I05414ca177f94cdc0f6077394d9c4af4a4382306
/rk3399_ARM-atf/include/common/
H A Ddebug.hfd1360a339e84ccd49f8a2d8a42e4c131a681b3c Tue Jul 20 21:57:47 UTC 2021 Pali Rohár <pali@kernel.org> feat(common/debug): add new macro ERROR_NL() to print just a newline

Existing macro ERROR() prints string "ERROR" followed by string
specified by caller. Therefore via this existing macro it is not
possible to end incomplete / existing line by a newline character.

This change adds a new macro ERROR_NL() which prints just a newline
character without any prefix. Implementation of this macro is done via a
new function tf_log_newline() which based on supplied log level either
return or print newline character.

If needed in future based on this tf_log_newline() function can be
defined also macros for other log levels.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I05414ca177f94cdc0f6077394d9c4af4a4382306