logging: Add compile time error on 64 bit platforms
Logger is designed with assumption that address fit in 32 bits. Added explicit compilation error on 64 bit platforms. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
a82ca0bb47
commit
c036d2f4dd
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFUL
|
||||
#error "Logger does not support 64 bit architecture."
|
||||
#endif
|
||||
|
||||
#if !CONFIG_LOG
|
||||
#define CONFIG_LOG_DEFAULT_LEVEL 0
|
||||
#define CONFIG_LOG_DOMAIN_ID 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue