From c81138367b1b458fc899300788606cad9eb43c2f Mon Sep 17 00:00:00 2001 From: Gunar Schorcht <gunar@schorcht.net> Date: Sun, 27 Jan 2019 12:14:18 +0100 Subject: [PATCH] cpu/esp8266: dbg msg replaced by an error msg The situation where the firmware `lwIP` packet buffer is exhausted is an important indication that the traffic sent to and sent from the esp8266 is more than the esp8266 is able to handle. Therefore, it should be an error message. --- cpu/esp8266/esp-wifi/esp_wifi_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/esp8266/esp-wifi/esp_wifi_netdev.c b/cpu/esp8266/esp-wifi/esp_wifi_netdev.c index 2be88f4c61..21974eb843 100644 --- a/cpu/esp8266/esp-wifi/esp_wifi_netdev.c +++ b/cpu/esp8266/esp-wifi/esp_wifi_netdev.c @@ -394,7 +394,7 @@ static int IRAM _send(netdev_t *netdev, const iolist_t *iolist) struct pbuf *pb = pbuf_alloc(PBUF_LINK, iol_len + PBUF_IEEE80211_HLEN, PBUF_RAM); if (pb == NULL || pb->tot_len < iol_len) { - ESP_WIFI_DEBUG("could not allocate buffer to send %d bytes ", iol_len); + ESP_WIFI_LOG_ERROR("could not allocate buffer to send %d bytes ", iol_len); /* * The memory of EPS8266 is quite small. Therefore, it may happen on * heavy network load that we run into out of memory and we have -- GitLab