From c0a4e00cc911a13235a4c15c9f691afe2dc8bf4e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 14 Jun 2016 14:10:13 -0600 Subject: [PATCH] apps/platform: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition. --- platform/arduino-due/sam_cxxinitialize.c | 29 ++++--------------- platform/cloudctrl/stm32_cxxinitialize.c | 29 ++++--------------- platform/fire-stm32v2/stm32_cxxinitialize.c | 29 ++++--------------- platform/mikroe-stm32f4/stm32_cxxinitialize.c | 29 ++++--------------- platform/nucleo-144/stm32_cxxinitialize.c | 29 ++++--------------- platform/nucleo-f303re/stm32_cxxinitialize.c | 29 ++++--------------- platform/nucleo-f4x1re/stm32_cxxinitialize.c | 29 ++++--------------- platform/nucleo-l476rg/stm32_cxxinitialize.c | 29 ++++--------------- .../olimex-stm32-h405/stm32_cxxinitialize.c | 29 ++++--------------- .../olimex-stm32-h407/stm32_cxxinitialize.c | 29 ++++--------------- .../olimex-stm32-p207/stm32_cxxinitialize.c | 29 ++++--------------- .../olimexino-stm32/stm32_cxxinitialize.c | 29 ++++--------------- platform/pcduino-a10/a1x_cxxinitialize.c | 29 ++++--------------- platform/sabre-6quad/imx_cxxinitialize.c | 29 ++++--------------- platform/sam3u-ek/sam_cxxinitialized.c | 29 ++++--------------- platform/sam4e-ek/sam_cxxinitialize.c | 29 ++++--------------- platform/sam4l-xplained/sam_cxxinitialize.c | 29 ++++--------------- .../sam4s-xplained-pro/sam_cxxinitialize.c | 29 ++++--------------- platform/sam4s-xplained/sam_cxxinitialize.c | 29 ++++--------------- platform/sama5d2-xult/sam_cxxinitialize.c | 29 ++++--------------- platform/sama5d3-xplained/sam_cxxinitialize.c | 29 ++++--------------- platform/sama5d3x-ek/sam_cxxinitialize.c | 29 ++++--------------- platform/sama5d4-ek/sam_cxxinitialize.c | 29 ++++--------------- platform/samd20-xplained/sam_cxxinitialize.c | 29 ++++--------------- platform/samd21-xplained/sam_cxxinitialize.c | 29 ++++--------------- platform/same70-xplained/sam_cxxinitialize.c | 29 ++++--------------- platform/saml21-xplained/sam_cxxinitialize.c | 29 ++++--------------- platform/samv71-xult/sam_cxxinitialize.c | 29 ++++--------------- platform/shenzhou/stm32_cxxinitialize.c | 29 ++++--------------- platform/spark/stm32_cxxinitialize.c | 29 ++++--------------- platform/stm3220g-eval/stm32_cxxinitialize.c | 29 ++++--------------- platform/stm3240g-eval/stm32_cxxinitialize.c | 29 ++++--------------- .../stm32f3discovery/stm32_cxxinitialize.c | 29 ++++--------------- .../stm32f429i-disco/stm32_cxxinitialize.c | 29 ++++--------------- .../stm32f4discovery/stm32_cxxinitialize.c | 29 ++++--------------- .../stm32f746g-disco/stm32_cxxinitialize.c | 29 ++++--------------- .../stm32l476vg-disco/stm32_cxxinitialize.c | 29 ++++--------------- .../stm32ldiscovery/stm32_cxxinitialize.c | 29 ++++--------------- platform/teensy-lc/kl_cxxinitialize.c | 29 ++++--------------- .../viewtool-stm32f107/stm32_cxxinitialize.c | 29 ++++--------------- 40 files changed, 200 insertions(+), 960 deletions(-) diff --git a/platform/arduino-due/sam_cxxinitialize.c b/platform/arduino-due/sam_cxxinitialize.c index 7799dbd5c..db73f5b5c 100644 --- a/platform/arduino-due/sam_cxxinitialize.c +++ b/platform/arduino-due/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/cloudctrl/stm32_cxxinitialize.c b/platform/cloudctrl/stm32_cxxinitialize.c index dff5a6ee2..4f65d0803 100644 --- a/platform/cloudctrl/stm32_cxxinitialize.c +++ b/platform/cloudctrl/stm32_cxxinitialize.c @@ -54,25 +54,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -99,10 +84,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -127,15 +108,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -145,7 +126,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/fire-stm32v2/stm32_cxxinitialize.c b/platform/fire-stm32v2/stm32_cxxinitialize.c index 3fc4ca107..c4c525f77 100644 --- a/platform/fire-stm32v2/stm32_cxxinitialize.c +++ b/platform/fire-stm32v2/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/mikroe-stm32f4/stm32_cxxinitialize.c b/platform/mikroe-stm32f4/stm32_cxxinitialize.c index 2f2083b3b..44d05ef15 100644 --- a/platform/mikroe-stm32f4/stm32_cxxinitialize.c +++ b/platform/mikroe-stm32f4/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/nucleo-144/stm32_cxxinitialize.c b/platform/nucleo-144/stm32_cxxinitialize.c index 62c05c4aa..30bc36b1b 100644 --- a/platform/nucleo-144/stm32_cxxinitialize.c +++ b/platform/nucleo-144/stm32_cxxinitialize.c @@ -54,25 +54,10 @@ * constructors */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -99,10 +84,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -127,15 +108,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -145,7 +126,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/nucleo-f303re/stm32_cxxinitialize.c b/platform/nucleo-f303re/stm32_cxxinitialize.c index c6f1a621e..fb9bc1142 100644 --- a/platform/nucleo-f303re/stm32_cxxinitialize.c +++ b/platform/nucleo-f303re/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/nucleo-f4x1re/stm32_cxxinitialize.c b/platform/nucleo-f4x1re/stm32_cxxinitialize.c index 430468585..b0667f577 100644 --- a/platform/nucleo-f4x1re/stm32_cxxinitialize.c +++ b/platform/nucleo-f4x1re/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/nucleo-l476rg/stm32_cxxinitialize.c b/platform/nucleo-l476rg/stm32_cxxinitialize.c index 64d56d64c..4730302fc 100644 --- a/platform/nucleo-l476rg/stm32_cxxinitialize.c +++ b/platform/nucleo-l476rg/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/olimex-stm32-h405/stm32_cxxinitialize.c b/platform/olimex-stm32-h405/stm32_cxxinitialize.c index 195d9f86f..a6ccc64ae 100644 --- a/platform/olimex-stm32-h405/stm32_cxxinitialize.c +++ b/platform/olimex-stm32-h405/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/olimex-stm32-h407/stm32_cxxinitialize.c b/platform/olimex-stm32-h407/stm32_cxxinitialize.c index a38754c4b..c65073a17 100644 --- a/platform/olimex-stm32-h407/stm32_cxxinitialize.c +++ b/platform/olimex-stm32-h407/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/olimex-stm32-p207/stm32_cxxinitialize.c b/platform/olimex-stm32-p207/stm32_cxxinitialize.c index 6e02b7474..521739eec 100644 --- a/platform/olimex-stm32-p207/stm32_cxxinitialize.c +++ b/platform/olimex-stm32-p207/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/olimexino-stm32/stm32_cxxinitialize.c b/platform/olimexino-stm32/stm32_cxxinitialize.c index e0c5092c1..f634fdadf 100644 --- a/platform/olimexino-stm32/stm32_cxxinitialize.c +++ b/platform/olimexino-stm32/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/pcduino-a10/a1x_cxxinitialize.c b/platform/pcduino-a10/a1x_cxxinitialize.c index d81fcd506..bfdd3b4d4 100644 --- a/platform/pcduino-a10/a1x_cxxinitialize.c +++ b/platform/pcduino-a10/a1x_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sabre-6quad/imx_cxxinitialize.c b/platform/sabre-6quad/imx_cxxinitialize.c index 5c6e1e00b..fe5e5d465 100644 --- a/platform/sabre-6quad/imx_cxxinitialize.c +++ b/platform/sabre-6quad/imx_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sam3u-ek/sam_cxxinitialized.c b/platform/sam3u-ek/sam_cxxinitialized.c index 9980df83c..c95a03efa 100644 --- a/platform/sam3u-ek/sam_cxxinitialized.c +++ b/platform/sam3u-ek/sam_cxxinitialized.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sam4e-ek/sam_cxxinitialize.c b/platform/sam4e-ek/sam_cxxinitialize.c index 9403bf54c..516c7e07f 100644 --- a/platform/sam4e-ek/sam_cxxinitialize.c +++ b/platform/sam4e-ek/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sam4l-xplained/sam_cxxinitialize.c b/platform/sam4l-xplained/sam_cxxinitialize.c index 71ec24037..e0dff6945 100644 --- a/platform/sam4l-xplained/sam_cxxinitialize.c +++ b/platform/sam4l-xplained/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sam4s-xplained-pro/sam_cxxinitialize.c b/platform/sam4s-xplained-pro/sam_cxxinitialize.c index 388687385..e1182d21f 100644 --- a/platform/sam4s-xplained-pro/sam_cxxinitialize.c +++ b/platform/sam4s-xplained-pro/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sam4s-xplained/sam_cxxinitialize.c b/platform/sam4s-xplained/sam_cxxinitialize.c index f145ef0de..e68182e13 100644 --- a/platform/sam4s-xplained/sam_cxxinitialize.c +++ b/platform/sam4s-xplained/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sama5d2-xult/sam_cxxinitialize.c b/platform/sama5d2-xult/sam_cxxinitialize.c index 605e6cdda..00d28a083 100644 --- a/platform/sama5d2-xult/sam_cxxinitialize.c +++ b/platform/sama5d2-xult/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sama5d3-xplained/sam_cxxinitialize.c b/platform/sama5d3-xplained/sam_cxxinitialize.c index 5a4033d0b..fb13d3eaf 100644 --- a/platform/sama5d3-xplained/sam_cxxinitialize.c +++ b/platform/sama5d3-xplained/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sama5d3x-ek/sam_cxxinitialize.c b/platform/sama5d3x-ek/sam_cxxinitialize.c index 3b1ee3dfd..03f9d5f56 100644 --- a/platform/sama5d3x-ek/sam_cxxinitialize.c +++ b/platform/sama5d3x-ek/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/sama5d4-ek/sam_cxxinitialize.c b/platform/sama5d4-ek/sam_cxxinitialize.c index ccb249e14..c020f55fe 100644 --- a/platform/sama5d4-ek/sam_cxxinitialize.c +++ b/platform/sama5d4-ek/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/samd20-xplained/sam_cxxinitialize.c b/platform/samd20-xplained/sam_cxxinitialize.c index 698ecf3ac..b25e594f2 100644 --- a/platform/samd20-xplained/sam_cxxinitialize.c +++ b/platform/samd20-xplained/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/samd21-xplained/sam_cxxinitialize.c b/platform/samd21-xplained/sam_cxxinitialize.c index dbdd4762a..3766534f0 100644 --- a/platform/samd21-xplained/sam_cxxinitialize.c +++ b/platform/samd21-xplained/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/same70-xplained/sam_cxxinitialize.c b/platform/same70-xplained/sam_cxxinitialize.c index 1c0263c5c..06f2dd75b 100644 --- a/platform/same70-xplained/sam_cxxinitialize.c +++ b/platform/same70-xplained/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/saml21-xplained/sam_cxxinitialize.c b/platform/saml21-xplained/sam_cxxinitialize.c index d1f518cd0..126c9496b 100644 --- a/platform/saml21-xplained/sam_cxxinitialize.c +++ b/platform/saml21-xplained/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/samv71-xult/sam_cxxinitialize.c b/platform/samv71-xult/sam_cxxinitialize.c index c945373a9..40edce139 100644 --- a/platform/samv71-xult/sam_cxxinitialize.c +++ b/platform/samv71-xult/sam_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/shenzhou/stm32_cxxinitialize.c b/platform/shenzhou/stm32_cxxinitialize.c index d93b926db..5bad27c7d 100644 --- a/platform/shenzhou/stm32_cxxinitialize.c +++ b/platform/shenzhou/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/spark/stm32_cxxinitialize.c b/platform/spark/stm32_cxxinitialize.c index 9ce8956a2..f11ef6ed5 100644 --- a/platform/spark/stm32_cxxinitialize.c +++ b/platform/spark/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm3220g-eval/stm32_cxxinitialize.c b/platform/stm3220g-eval/stm32_cxxinitialize.c index b71a994ba..99c0eaaee 100644 --- a/platform/stm3220g-eval/stm32_cxxinitialize.c +++ b/platform/stm3220g-eval/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm3240g-eval/stm32_cxxinitialize.c b/platform/stm3240g-eval/stm32_cxxinitialize.c index f27a9635c..c03e76c20 100644 --- a/platform/stm3240g-eval/stm32_cxxinitialize.c +++ b/platform/stm3240g-eval/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm32f3discovery/stm32_cxxinitialize.c b/platform/stm32f3discovery/stm32_cxxinitialize.c index f0db50ba1..c899d50be 100644 --- a/platform/stm32f3discovery/stm32_cxxinitialize.c +++ b/platform/stm32f3discovery/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm32f429i-disco/stm32_cxxinitialize.c b/platform/stm32f429i-disco/stm32_cxxinitialize.c index 34741aa35..bea0b04cd 100644 --- a/platform/stm32f429i-disco/stm32_cxxinitialize.c +++ b/platform/stm32f429i-disco/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm32f4discovery/stm32_cxxinitialize.c b/platform/stm32f4discovery/stm32_cxxinitialize.c index 0d04c9aa0..d3165aaba 100644 --- a/platform/stm32f4discovery/stm32_cxxinitialize.c +++ b/platform/stm32f4discovery/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm32f746g-disco/stm32_cxxinitialize.c b/platform/stm32f746g-disco/stm32_cxxinitialize.c index e9707d6e1..33eb1d3f1 100644 --- a/platform/stm32f746g-disco/stm32_cxxinitialize.c +++ b/platform/stm32f746g-disco/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm32l476vg-disco/stm32_cxxinitialize.c b/platform/stm32l476vg-disco/stm32_cxxinitialize.c index ab3814e44..b438b564d 100644 --- a/platform/stm32l476vg-disco/stm32_cxxinitialize.c +++ b/platform/stm32l476vg-disco/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/stm32ldiscovery/stm32_cxxinitialize.c b/platform/stm32ldiscovery/stm32_cxxinitialize.c index 1dcc54b75..1e5313369 100644 --- a/platform/stm32ldiscovery/stm32_cxxinitialize.c +++ b/platform/stm32ldiscovery/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/teensy-lc/kl_cxxinitialize.c b/platform/teensy-lc/kl_cxxinitialize.c index 2d88785ef..45fa933de 100644 --- a/platform/teensy-lc/kl_cxxinitialize.c +++ b/platform/teensy-lc/kl_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } } diff --git a/platform/viewtool-stm32f107/stm32_cxxinitialize.c b/platform/viewtool-stm32f107/stm32_cxxinitialize.c index 1ef478db5..b92f9dfee 100644 --- a/platform/viewtool-stm32f107/stm32_cxxinitialize.c +++ b/platform/viewtool-stm32f107/stm32_cxxinitialize.c @@ -53,25 +53,10 @@ * constructors. */ -#ifndef CONFIG_DEBUG_FEATURES -# undef CONFIG_DEBUG_CXX -#endif - #ifdef CONFIG_DEBUG_CXX -# define cxxerr err -# define cxxllerr llerr -# ifdef CONFIG_DEBUG_INFO -# define cxxinfo info -# define cxxllinfo llinfo -# else -# define cxxinfo(x...) -# define cxxllinfo(x...) -# endif +# define cxxinfo info #else -# define cxxerr(x...) -# define cxxllerr(x...) # define cxxinfo(x...) -# define cxxllinfo(x...) #endif /**************************************************************************** @@ -98,10 +83,6 @@ extern initializer_t _einit; extern uint32_t _stext; extern uint32_t _etext; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -126,15 +107,15 @@ void up_cxxinitialize(void) { initializer_t *initp; - cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n", - &_sinit, &_einit, &_stext, &_etext); + cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n", + &_sinit, &_einit, &_stext, &_etext); /* Visit each entry in the initialization table */ for (initp = &_sinit; initp != &_einit; initp++) { initializer_t initializer = *initp; - cxxerr("initp: %p initializer: %p\n", initp, initializer); + cxxinfo("initp: %p initializer: %p\n", initp, initializer); /* Make sure that the address is non-NULL and lies in the text region * defined by the linker script. Some toolchains may put NULL values @@ -144,7 +125,7 @@ void up_cxxinitialize(void) if ((void *)initializer > (void *)&_stext && (void *)initializer < (void *)&_etext) { - cxxerr("Calling %p\n", initializer); + cxxinfo("Calling %p\n", initializer); initializer(); } }