Commit 0289f968 authored by Federico Vaga's avatar Federico Vaga

tools: fix print data type

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 1f032b3b
...@@ -168,7 +168,7 @@ static void __collect_data(struct msghdr *msgp, struct ts_data *tstamp) ...@@ -168,7 +168,7 @@ static void __collect_data(struct msghdr *msgp, struct ts_data *tstamp)
for (cm = CMSG_FIRSTHDR(msgp); cm; cm = CMSG_NXTHDR(msgp, cm)) { for (cm = CMSG_FIRSTHDR(msgp); cm; cm = CMSG_NXTHDR(msgp, cm)) {
tsptr = (struct timespec *)CMSG_DATA(cm); tsptr = (struct timespec *)CMSG_DATA(cm);
if (0) { if (0) {
printf("level %i, type %i, len %li\n", cm->cmsg_level, printf("level %i, type %i, len %zi\n", cm->cmsg_level,
cm->cmsg_type, cm->cmsg_len); cm->cmsg_type, cm->cmsg_len);
} }
if (cm->cmsg_level != SOL_SOCKET) if (cm->cmsg_level != SOL_SOCKET)
......
...@@ -116,7 +116,7 @@ int main(int argc, char **argv) ...@@ -116,7 +116,7 @@ int main(int argc, char **argv)
len = recv(agent_sock, &f, sizeof(f), MSG_TRUNC); len = recv(agent_sock, &f, sizeof(f), MSG_TRUNC);
if (len != sizeof(f)) { if (len != sizeof(f)) {
fprintf(stderr, "%s: recevied unexpected frame length" fprintf(stderr, "%s: recevied unexpected frame length"
" (%i instead of %lu)\n", agent_prgname, len, " (%i instead of %zu)\n", agent_prgname, len,
sizeof(f)); sizeof(f));
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment