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_ASSERT_NO_FILE_INFO

Disable file info for asserts

Type: bool

Help

This option removes the name and the path of the source file
in which the assertion occurred. Enabling this will save
target code space, and thus may be necessary for tiny targets.

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/debug/Kconfig:245

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:17

Menu path: (Top) → Sub Systems and OS Services → Debugging Options

config ASSERT_NO_FILE_INFO
    bool "Disable file info for asserts"
    help
      This option removes the name and the path of the source file
      in which the assertion occurred. Enabling this will save
      target code space, and thus may be necessary for tiny targets.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)