dhcpv4: de-escalate error logging to debug openwrt-25.12
authorPaul Donald <newtwen+github@gmail.com>
Mon, 19 Jan 2026 00:07:44 +0000 (01:07 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 25 Jan 2026 18:09:32 +0000 (19:09 +0100)
Logging in dhcpv4_handle_msg() was changed from debug to error during code
refactor.

(cherry picked from commit 13ef483716a504378b223d668c2482c93a804336)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: https://github.com/openwrt/odhcpd/pull/375
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
src/dhcpv4.c

index bb4444e8ef9f1363664a97a46e6d3b7f7d53a89a..c802cdea26a57c470665cd196d1e7a68ffe1bafb 100644 (file)
@@ -1330,7 +1330,7 @@ void dhcpv4_handle_msg(void *src_addr, void *data, size_t len,
        } else {
                char ipv4_str[INET_ADDRSTRLEN];
 
-               error("Sent %s to %s - %s",
+               debug("Sent %s to %s - %s",
                      dhcpv4_msg_to_string(reply_msg.data),
                      dest_addr.sin_addr.s_addr == INADDR_BROADCAST ?
                      "ff:ff:ff:ff:ff:ff": odhcpd_print_mac(req->chaddr, req->hlen),