dhcpv6: fix size_t fields in syslog format
authorMikael Magnusson <mikma@users.sourceforge.net>
Sun, 1 Nov 2020 13:52:39 +0000 (14:52 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 1 Nov 2020 19:13:35 +0000 (20:13 +0100)
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
src/dhcpv6.c

index 00628cd219ae42cf25d76e1abd6757e79fbdaecc..225f9616f029b4c95d46a5947d04095e74f1c4d6 100644 (file)
@@ -253,7 +253,7 @@ static int send_reply(_unused const void *buf, size_t len,
        struct dhcpv4_msg_data *reply = opaque;
 
        if (len > reply->maxsize) {
-               syslog(LOG_ERR, "4o6: reply too large, %u > %u", len, reply->maxsize);
+               syslog(LOG_ERR, "4o6: reply too large, %zu > %zu", len, reply->maxsize);
                reply->len = -1;
        } else {
                memcpy(reply->msg, buf, len);