1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

sys/net/uhcp: use LOG_DEBUG instead of LOG_INFO

uhcp is pretty noisy compared to DHCPv6 as INFO log level is enabled
by default.

Tone it down to LOG_DEBUG to keep the output clean.
This commit is contained in:
Benjamin Valentin 2021-10-14 14:09:17 +02:00
parent f49ca5855e
commit f74c795033
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ void uhcp_handle_udp(uint8_t *buf, size_t len, uint8_t *src, uint16_t port, uhcp
{
char addr_str[INET6_ADDRSTRLEN];
inet_ntop(AF_INET6, src, addr_str, INET6_ADDRSTRLEN);
LOG_INFO("got packet from %s port %u\n", addr_str, (unsigned)port);
LOG_DEBUG("got packet from %s port %u\n", addr_str, (unsigned)port);
if (len < sizeof(uhcp_req_t)) {
LOG_ERROR("error: packet too small.\n");
@ -108,7 +108,7 @@ void uhcp_handle_push(uhcp_push_t *req, uint8_t *src, uint16_t port, uhcp_iface_
inet_ntop(AF_INET6, prefix, prefix_str, INET6_ADDRSTRLEN);
LOG_INFO("uhcp: push from %s:%u prefix=%s/%u\n", addr_str, (unsigned)port,
LOG_DEBUG("uhcp: push from %s:%u prefix=%s/%u\n", addr_str, (unsigned)port,
prefix_str, req->prefix_len);
uhcp_handle_prefix(prefix, req->prefix_len, 0xFFFF, src, iface);
}

View File

@ -46,7 +46,7 @@ void uhcp_client(uhcp_iface_t iface)
uint8_t buf[sizeof(uhcp_push_t) + 16];
while(1) {
LOG_INFO("uhcp_client(): sending REQ...\n");
LOG_DEBUG("uhcp_client(): sending REQ...\n");
sock_udp_send(&sock, &req, sizeof(uhcp_req_t), &req_target);
res = sock_udp_recv(&sock, buf, sizeof(buf), 10U*US_PER_SEC, &remote);
if (res > 0) {