Be less verbose on unkown eth types

This commit is contained in:
Sergio R. Caprile 2023-12-09 11:06:38 -03:00
parent 45d7f4ca7e
commit 92ecef7bd3
2 changed files with 2 additions and 2 deletions

View File

@ -5303,7 +5303,7 @@ static void mg_tcpip_rx(struct mg_tcpip_if *ifp, void *buf, size_t len) {
rx_ip(ifp, &pkt); rx_ip(ifp, &pkt);
} else { } else {
MG_DEBUG(("Unknown eth type %x", mg_htons(pkt.eth->type))); MG_DEBUG(("Unknown eth type %x", mg_htons(pkt.eth->type)));
mg_hexdump(buf, len >= 32 ? 32 : len); if (mg_log_level >= MG_LL_VERBOSE) mg_hexdump(buf, len >= 32 ? 32 : len);
} }
} }

View File

@ -833,7 +833,7 @@ static void mg_tcpip_rx(struct mg_tcpip_if *ifp, void *buf, size_t len) {
rx_ip(ifp, &pkt); rx_ip(ifp, &pkt);
} else { } else {
MG_DEBUG(("Unknown eth type %x", mg_htons(pkt.eth->type))); MG_DEBUG(("Unknown eth type %x", mg_htons(pkt.eth->type)));
mg_hexdump(buf, len >= 32 ? 32 : len); if (mg_log_level >= MG_LL_VERBOSE) mg_hexdump(buf, len >= 32 ? 32 : len);
} }
} }