lib: os: cbprintf: Add dependency to cbprintf Kconfig
Prevent CONFIG_CBPRINTF_STATIC_PACKAGE_CHECK_ALIGNMENT when LOG_PRINTK. Prevent use of assert in cbprintf header when printk is redirected to logging. Enabling it would lead to circular header includes and compilation failure. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
4e3e013050
commit
69d2cc4735
|
@ -127,6 +127,8 @@ config CBPRINTF_PACKAGE_LONGDOUBLE
|
|||
|
||||
config CBPRINTF_STATIC_PACKAGE_CHECK_ALIGNMENT
|
||||
bool "Validate alignment of a static package buffer"
|
||||
# To avoid self referential macro when printk is redirected to logging
|
||||
depends on !LOG_PRINTK
|
||||
help
|
||||
When enabled, CBPRINTF_STATIC_PACKAGE asserts when buffer is not
|
||||
properly aligned. If macro is widely used then assert may impact
|
||||
|
|
Loading…
Reference in a new issue