include: Add missing U for unsigned constants
MISRA-C rule 10.1 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
c2b25151cb
commit
5f5377f225
2 changed files with 10 additions and 6 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <logging/log_instance.h>
|
||||
#include <misc/util.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -26,10 +27,13 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#define LOG_FUNCTION_PREFIX_MASK \
|
||||
((IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_ERR) << LOG_LEVEL_ERR) | \
|
||||
(IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_WRN) << LOG_LEVEL_WRN) | \
|
||||
(IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_INF) << LOG_LEVEL_INF) | \
|
||||
(IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_DBG) << LOG_LEVEL_DBG))
|
||||
(((u32_t)IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_ERR) << \
|
||||
LOG_LEVEL_ERR) | \
|
||||
((u32_t)IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_WRN) << \
|
||||
LOG_LEVEL_WRN) | \
|
||||
((u32_t)IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_INF) << \
|
||||
LOG_LEVEL_INF) | \
|
||||
((u32_t)IS_ENABLED(CONFIG_LOG_FUNC_NAME_PREFIX_DBG) << LOG_LEVEL_DBG))
|
||||
|
||||
/** @brief Macro for returning local level value if defined or default.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue