Go to the source code of this file.
|
#define | ACC_LOG(level, ...) acc_integration_log(level, MODULE, __VA_ARGS__) |
|
#define | ACC_LOG_ERROR(...) ACC_LOG(ACC_LOG_LEVEL_ERROR, __VA_ARGS__) |
|
#define | ACC_LOG_WARNING(...) ACC_LOG(ACC_LOG_LEVEL_WARNING, __VA_ARGS__) |
|
#define | ACC_LOG_INFO(...) ACC_LOG(ACC_LOG_LEVEL_INFO, __VA_ARGS__) |
|
#define | ACC_LOG_VERBOSE(...) ACC_LOG(ACC_LOG_LEVEL_VERBOSE, __VA_ARGS__) |
|
#define | ACC_LOG_DEBUG(...) ACC_LOG(ACC_LOG_LEVEL_DEBUG, __VA_ARGS__) |
|
#define | ACC_LOG_SIGN(a) (((a) < 0.0f) ? (-1.0f) : (1.0f)) |
|
#define | ACC_LOG_FLOAT_INT(a) ((unsigned long int)((a) + 0.0000005f)) |
|
#define | ACC_LOG_FLOAT_DEC(a) (unsigned long int)((1000000.0f * (((a) + 0.0000005f) - ((unsigned int)((a) + 0.0000005f))))) |
|
#define | ACC_LOG_FLOAT_TO_INTEGER(a) (((a) < 0.0f) ? "-" : ""), ACC_LOG_FLOAT_INT((a) * ACC_LOG_SIGN(a)), ACC_LOG_FLOAT_DEC((a) * ACC_LOG_SIGN(a)) |
|
#define | PRIfloat "s%lu.%06lu" |
| Specifier for printing float type using integers. More...
|
|
#define | PRINTF_ATTRIBUTE_CHECK(a, b) |
|
◆ ACC_LOG
◆ ACC_LOG_DEBUG
◆ ACC_LOG_ERROR
◆ ACC_LOG_FLOAT_DEC
#define ACC_LOG_FLOAT_DEC |
( |
|
a | ) |
(unsigned long int)((1000000.0f * (((a) + 0.0000005f) - ((unsigned int)((a) + 0.0000005f))))) |
◆ ACC_LOG_FLOAT_INT
#define ACC_LOG_FLOAT_INT |
( |
|
a | ) |
((unsigned long int)((a) + 0.0000005f)) |
◆ ACC_LOG_FLOAT_TO_INTEGER
◆ ACC_LOG_INFO
◆ ACC_LOG_SIGN
#define ACC_LOG_SIGN |
( |
|
a | ) |
(((a) < 0.0f) ? (-1.0f) : (1.0f)) |
◆ ACC_LOG_VERBOSE
◆ ACC_LOG_WARNING
◆ PRIfloat
#define PRIfloat "s%lu.%06lu" |
◆ PRINTF_ATTRIBUTE_CHECK
#define PRINTF_ATTRIBUTE_CHECK |
( |
|
a, |
|
|
|
b |
|
) |
| |
◆ acc_integration_log()
void acc_integration_log |
( |
acc_log_level_t |
level, |
|
|
const char * |
module, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Log function.
This log function can be used as a complement to for example printf. It adds useful information to the log such as time and log level
- Parameters
-
[in] | level | The severity level for the log |
[in] | module | The name of the SW module from where the log is called |
[in] | format | The information to be logged, same format as for printf |
Definition at line 21 of file acc_integration_log.c.