hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/net/udpgso.c
....@@ -17,7 +17,6 @@
1717 #include <stdbool.h>
1818 #include <stdlib.h>
1919 #include <stdio.h>
20
-#include <stdlib.h>
2120 #include <string.h>
2221 #include <sys/ioctl.h>
2322 #include <sys/socket.h>
....@@ -441,7 +440,8 @@
441440 if (ret == -1)
442441 error(1, errno, "sendmsg");
443442 if (ret != msg->msg_iov->iov_len)
444
- error(1, 0, "sendto: %d != %lu", ret, msg->msg_iov->iov_len);
443
+ error(1, 0, "sendto: %d != %llu", ret,
444
+ (unsigned long long)msg->msg_iov->iov_len);
445445 if (msg->msg_flags)
446446 error(1, 0, "sendmsg: return flags 0x%x\n", msg->msg_flags);
447447