Skip to content

Commit

Permalink
net: Give name to logging choice
Browse files Browse the repository at this point in the history
This allows downstream modules to overwrite the default log level choice
using Kconfig.defconfig files.

For example, this becomes possible:

```
choice LWM2M_LOG_LEVEL_CHOICE
  default LWM2M_LOG_LEVEL_WRN
endchoice
```

In contrast to the configuration method, this then has an effect on all
applications stored in the downstream module.

Signed-off-by: Reto Schneider <[email protected]>
  • Loading branch information
rettichschnidi authored and fabiobaltieri committed Sep 30, 2024
1 parent a50e0d9 commit 8fda052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/Kconfig.template.log_config.net
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright (c) 2018 Intel Corporation.
# SPDX-License-Identifier: Apache-2.0

choice
choice "$(module)_LOG_LEVEL_CHOICE"
prompt "$(module-str)"
default $(module)_LOG_LEVEL_DEFAULT
depends on $(module-dep)
Expand Down

0 comments on commit 8fda052

Please sign in to comment.