debug: allow customize EXTRA_FMT

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-08-23 22:28:11 +08:00 committed by Xiang Xiao
parent ce4b79d554
commit c9c284089f
1 changed files with 7 additions and 2 deletions

View File

@ -78,11 +78,16 @@
* really intended only for crash error reporting.
*/
#ifdef CONFIG_HAVE_FUNCTIONNAME
#if !defined(EXTRA_FMT) && !defined(EXTRA_ARG) && defined(CONFIG_HAVE_FUNCTIONNAME)
# define EXTRA_FMT "%s: "
# define EXTRA_ARG ,__FUNCTION__
#else
#endif
#ifndef EXTRA_FMT
# define EXTRA_FMT
#endif
#ifndef EXTRA_ARG
# define EXTRA_ARG
#endif