Skip to content

Commit 3f1d1f5

Browse files
mniestrojnashif
authored andcommitted
drivers: wifi: esp: suppress warning logs when socket was closed
Socket can be closed either by Zephyr or by peer. In the former case ESP WiFi chip still notfies about closed socket, which currently results in printing warning log: <wrn> wifi_esp: Link X already closed Change level of this log from warning to debug, so that driver users are not concerned about situation that is a normal behaviour. Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 681173c commit 3f1d1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/wifi/esp/esp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ MODEM_CMD_DEFINE(on_cmd_closed)
398398
ESP_SOCK_CONNECTED, ESP_SOCK_CLOSE_PENDING);
399399

400400
if (!(old_flags & ESP_SOCK_CONNECTED)) {
401-
LOG_WRN("Link %d already closed", link_id);
401+
LOG_DBG("Link %d already closed", link_id);
402402
goto socket_unref;
403403
}
404404

0 commit comments

Comments
 (0)