* @brief Macro used to call tr_log_full_ex with file, function and line information
* @brief Macro used to call tr_log_full_ex with file, function and line information
...
@@ -206,169 +342,82 @@ extern "C" {
...
@@ -206,169 +342,82 @@ extern "C" {
#define LOG_RETURN(c,x) do {uint32_t __rv;__rv=(unsigned int)(x);LOG_T(c,"Returning %08x\n", __rv);return((typeof(x))__rv);}while(0) /*!< \brief Macro to log a function exit, including integer value, then to return a value to the calling function */
#define LOG_RETURN(c,x) do {uint32_t __rv;__rv=(unsigned int)(x);LOG_T(c,"Returning %08x\n", __rv);return((typeof(x))__rv);}while(0) /*!< \brief Macro to log a function exit, including integer value, then to return a value to the calling function */
/* @}*/
/* @}*/
staticinlineunsignedlonglongrdtsc(void){
/** @defgroup _log_format Defined log format
unsignedlonglonga,d;
* @ingroup _macro
__asm__volatile("rdtsc":"=a"(a),"=d"(d));
* @brief Macro of log formats defined by LOG
return(d<<32)|a;
* @{*/
/* .log_format = 0x13 uncolored standard messages
* .log_format = 0x93 colored standard messages */
#define LOG_RED "\033[1;31m" /*!< \brief VT100 sequence for bold red foreground */
#define LOG_GREEN "\033[32m" /*!< \brief VT100 sequence for green foreground */