From c9c284089fe8944d464c54b52ffc40cbdc25b41c Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Mon, 23 Aug 2021 22:28:11 +0800 Subject: [PATCH] debug: allow customize EXTRA_FMT Signed-off-by: Jiuzhu Dong --- include/debug.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/debug.h b/include/debug.h index f75a1fab84..a869897390 100644 --- a/include/debug.h +++ b/include/debug.h @@ -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