1# SPDX-License-Identifier: Apache-2.0
2
3choice "$(module)_LOG_LEVEL_CHOICE"
4	prompt "Max compiled-in log level for $(module-str)"
5	default $(module)_LOG_LEVEL_DEFAULT
6	depends on LOG
7
8config $(module)_LOG_LEVEL_OFF
9	bool "Off"
10
11config $(module)_LOG_LEVEL_ERR
12	bool "Error"
13
14config $(module)_LOG_LEVEL_WRN
15	bool "Warning"
16
17config $(module)_LOG_LEVEL_INF
18	bool "Info"
19
20config $(module)_LOG_LEVEL_DBG
21	bool "Debug"
22
23config $(module)_LOG_LEVEL_DEFAULT
24	bool "Default"
25
26endchoice
27
28config $(module)_LOG_LEVEL
29	int
30	depends on LOG
31	default 0 if $(module)_LOG_LEVEL_OFF
32	default 1 if $(module)_LOG_LEVEL_ERR
33	default 2 if $(module)_LOG_LEVEL_WRN
34	default 3 if $(module)_LOG_LEVEL_INF
35	default 4 if $(module)_LOG_LEVEL_DBG
36	default LOG_DEFAULT_LEVEL if $(module)_LOG_LEVEL_DEFAULT
37