-
CONFIG_CBPRINTF_REDUCED_INTEGRAL
¶
Convert only integer values that fit in 32 bits
Type: bool
Help¶
Build cbprintf with buffers sized to support converting integer values with no more than 32 bits.
This will decrease stack space, but affects conversion of any type with more than 32 bits. This includes not only intmax_t but any type that can be converted to an integral represention including size_t and pointers.
With CBPRINTF_COMPLETE conversions that may result in value-specific truncation are not supported, and the generated text will be the specification (e.g. %jd).
With CBPRINTF_NANO all conversions will be attempted but values that cannot fit will be silently truncated.
Direct dependencies¶
<choice CBPRINTF_INTEGRAL_CONV: Control range of convertible integer values>
(Includes any dependencies from ifs and menus.)
Kconfig definition¶
At <Zephyr>/lib/os/Kconfig.cbprintf:42
Included via <Zephyr>/Kconfig:8
→ <Zephyr>/Kconfig.zephyr:33
→ <Zephyr>/lib/Kconfig:16
→ <Zephyr>/lib/os/Kconfig:63
Menu path: (Top) → Additional libraries → OS Support Library → Control range of convertible integer values
config CBPRINTF_REDUCED_INTEGRAL bool "Convert only integer values that fit in 32 bits" depends on <choice CBPRINTF_INTEGRAL_CONV: Control range of convertible integer values> help Build cbprintf with buffers sized to support converting integer values with no more than 32 bits. This will decrease stack space, but affects conversion of any type with more than 32 bits. This includes not only intmax_t but any type that can be converted to an integral represention including size_t and pointers. With CBPRINTF_COMPLETE conversions that may result in value-specific truncation are not supported, and the generated text will be the specification (e.g. %jd). With CBPRINTF_NANO all conversions will be attempted but values that cannot fit will be silently truncated.
(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)