The latest development version of this page may be more current than this released 1.14.1 version.
CONFIG_ASSERT_LEVEL

__ASSERT() level

Type: int

Help

This option specifies the assertion level used by the __ASSERT() macro. It can be set to one of three possible values:

Level 0: off Level 1: on + warning in every file that includes __assert.h Level 2: on + no warning

Direct dependencies

ASSERT

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At subsys/debug/Kconfig:141

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:14

Menu path: (top menu) → Debugging Options

config ASSERT_LEVEL
    int
    prompt "__ASSERT() level" if ASSERT
    range 0 2 if ASSERT
    default 2 if ASSERT
    depends on ASSERT
    help
      This option specifies the assertion level used by the __ASSERT()
      macro. It can be set to one of three possible values:

      Level 0: off
      Level 1: on + warning in every file that includes __assert.h
      Level 2: on + no warning

(Definitions include propagated dependencies, including from if’s and menus.)