1 --- nfs-utils-2.4.2/utils/nfsdcld/nfsdcld.c.orig 2019-11-29 16:50:34.858389742 +0100
2 +++ nfs-utils-2.4.2/utils/nfsdcld/nfsdcld.c 2019-11-29 16:50:38.298371106 +0100
4 bsize = cld_message_size(cmsg);
5 wsize = atomicio((void *)write, clnt->cl_fd, cmsg, bsize);
7 - xlog(L_ERROR, "%s: problem writing to cld pipe (%ld): %m",
8 + xlog(L_ERROR, "%s: problem writing to cld pipe (%zd): %m",
11 /* reopen pipe, just to be sure */
13 xlog(D_GENERAL, "Doing downcall with status %d", cmsg->cm_status);
14 wsize = atomicio((void *)write, clnt->cl_fd, cmsg, bsize);
16 - xlog(L_ERROR, "%s: problem writing to cld pipe (%ld): %m",
17 + xlog(L_ERROR, "%s: problem writing to cld pipe (%zd): %m",
19 ret = cld_pipe_open(clnt);
22 xlog(D_GENERAL, "Doing downcall with status %d", cmsg->cm_status);
23 wsize = atomicio((void *)write, clnt->cl_fd, cmsg, bsize);
25 - xlog(L_ERROR, "%s: problem writing to cld pipe (%ld): %m",
26 + xlog(L_ERROR, "%s: problem writing to cld pipe (%zd): %m",
28 ret = cld_pipe_open(clnt);
32 wsize = atomicio((void *)write, clnt->cl_fd, cmsg, bsize);
34 - xlog(L_ERROR, "%s: problem writing to cld pipe (%ld): %m",
35 + xlog(L_ERROR, "%s: problem writing to cld pipe (%zd): %m",
37 ret = cld_pipe_open(clnt);
41 wsize = atomicio((void *)write, clnt->cl_fd, cmsg, bsize);
43 - xlog(L_ERROR, "%s: problem writing to cld pipe (%ld): %m",
44 + xlog(L_ERROR, "%s: problem writing to cld pipe (%zd): %m",
46 ret = cld_pipe_open(clnt);
49 xlog(D_GENERAL, "Doing downcall with status %d", cmsg->cm_status);
50 wsize = atomicio((void *)write, clnt->cl_fd, cmsg, bsize);
52 - xlog(L_ERROR, "%s: problem writing to cld pipe (%ld): %m",
53 + xlog(L_ERROR, "%s: problem writing to cld pipe (%zd): %m",
55 ret = cld_pipe_open(clnt);
58 xlog(D_GENERAL, "Doing downcall with status %d", cmsg->cm_status);
59 wsize = atomicio((void *)write, clnt->cl_fd, cmsg, bsize);
61 - xlog(L_ERROR, "%s: problem writing to cld pipe (%ld): %m",
62 + xlog(L_ERROR, "%s: problem writing to cld pipe (%zd): %m",
64 ret = cld_pipe_open(clnt);
66 --- nfs-utils-2.4.2/utils/nfsdcld/sqlite.c.orig 2019-11-13 18:09:41.000000000 +0100
67 +++ nfs-utils-2.4.2/utils/nfsdcld/sqlite.c 2019-11-29 16:52:19.827821073 +0100
70 recovery_epoch = trec;
72 - xlog(D_GENERAL, "%s: current_epoch=%lu recovery_epoch=%lu",
73 + xlog(D_GENERAL, "%s: current_epoch=%"PRIu64" recovery_epoch=%"PRIu64,
74 __func__, current_epoch, recovery_epoch);
76 sqlite3_finalize(stmt);
80 recovery_epoch = trec;
81 - xlog(D_GENERAL, "%s: current_epoch=%lu recovery_epoch=%lu",
82 + xlog(D_GENERAL, "%s: current_epoch=%"PRIu64" recovery_epoch=%"PRIu64,
83 __func__, current_epoch, recovery_epoch);
90 - xlog(D_GENERAL, "%s: current_epoch=%lu recovery_epoch=%lu",
91 + xlog(D_GENERAL, "%s: current_epoch=%"PRIu64" recovery_epoch=%"PRIu64,
92 __func__, current_epoch, recovery_epoch);
95 --- nfs-utils-2.4.2/utils/nfsdcltrack/nfsdcltrack.c.orig 2019-12-01 08:16:29.090420366 +0100
96 +++ nfs-utils-2.4.2/utils/nfsdcltrack/nfsdcltrack.c 2019-12-01 08:16:36.084104443 +0100
101 - xlog(D_GENERAL, "%s: grace done. gracetime=%ld", __func__, gracetime);
102 + xlog(D_GENERAL, "%s: grace done. gracetime=%lld", __func__, (uint64_t)gracetime);
104 ret = sqlite_remove_unreclaimed(gracetime);