You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Can't turn off logging for i2c driver (i2c_nrfx_twi.c) even if the CONFIG_I2C_LOG_LEVEL_OFF is set (and CONFIG_I2C_LOG_LEVEL=0).
According to this note for LOG_MODULE_REGISTER @note The module's state is defined, and the module is registered, only if LOG_LEVEL for the current source file is non-zero or it is not defined and CONFIG_LOG_DEFAULT_LEVEL is non-zero. In other cases, this macro has no effect.
and this lines from i2c_nrfx_twi.c #define LOG_LEVEL CONFIG_I2C_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(i2c_nrfx_twi);
macro should not register this file and no logs should be printed.
Environment (please complete the following information):
OS: Linux
Commit SHA or Version used - zephyr-v1.14.0-2943-g8e9bf88d66
The text was updated successfully, but these errors were encountered:
Describe the bug
Can't turn off logging for i2c driver (i2c_nrfx_twi.c) even if the CONFIG_I2C_LOG_LEVEL_OFF is set (and CONFIG_I2C_LOG_LEVEL=0).
According to this note for LOG_MODULE_REGISTER
@note The module's state is defined, and the module is registered, only if LOG_LEVEL for the current source file is non-zero or it is not defined and CONFIG_LOG_DEFAULT_LEVEL is non-zero. In other cases, this macro has no effect.
and this lines from i2c_nrfx_twi.c
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(i2c_nrfx_twi);
macro should not register this file and no logs should be printed.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: