Skip to content

Commit

Permalink
[nrf fromlist] modem: backends: use CONFIG_MODEM_MODULES_LOG_LEVEL
Browse files Browse the repository at this point in the history
Upstream PR: zephyrproject-rtos/zephyr#68651

This makes the modem backends use the log level
set for the modem modules instead of the default one.

Signed-off-by: Tomi Fontanilles <[email protected]>
  • Loading branch information
tomi-font committed Feb 16, 2024
1 parent 77fb98c commit 2de7a21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion subsys/modem/backends/modem_backend_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <zephyr/modem/backend/tty.h>

#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_backend_tty);
LOG_MODULE_REGISTER(modem_backend_tty, CONFIG_MODEM_MODULES_LOG_LEVEL);

#include <fcntl.h>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion subsys/modem/backends/modem_backend_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <zephyr/modem/backend/uart.h>

#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(modem_backend_uart);
LOG_MODULE_REGISTER(modem_backend_uart, CONFIG_MODEM_MODULES_LOG_LEVEL);

#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion subsys/modem/backends/modem_backend_uart_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "modem_backend_uart_async.h"

#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(modem_backend_uart);
LOG_MODULE_DECLARE(modem_backend_uart, CONFIG_MODEM_MODULES_LOG_LEVEL);

#include <zephyr/kernel.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion subsys/modem/backends/modem_backend_uart_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "modem_backend_uart_isr.h"

#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(modem_backend_uart);
LOG_MODULE_DECLARE(modem_backend_uart, CONFIG_MODEM_MODULES_LOG_LEVEL);

#include <string.h>

Expand Down

0 comments on commit 2de7a21

Please sign in to comment.