proper format for uint32_t in IpfixReceiver

master
Nicholas Brown 2017-05-05 10:43:39 +01:00 committed by Luca Boccassi
parent fb668035cf
commit b6b6c05e40
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <inttypes.h>
IpfixReceiver::IpfixReceiver()
@ -194,6 +195,6 @@ void IpfixReceiver::setBufferSize(const int sockfd, const uint32_t buffer)
uint32_t temp;
socklen_t len = sizeof(temp);
getsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, &temp, &len);
msg(MSG_INFO, "Socket buffer size set to %lu bytes", temp);
msg(MSG_INFO, "Socket buffer size set to %" PRIu32 " bytes", temp);
}
}