This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

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 lib/os/Kconfig.cbprintf:42

Included via Kconfig:8Kconfig.zephyr:41lib/Kconfig:10lib/os/Kconfig:81

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>
    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.)