nfsdcld: Fix printf format strings on 32bit
Subsystems (2)
PATCH 1/1 nfsdcld: Fix printf format strings on 32bit
Signed-off-by Doug Nazar <[email protected]>
--- utils/nfsdcld/nfsdcld.c | 14 +++++++------- utils/nfsdcld/sqlite.c | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-)
utils/nfsdcld/nfsdcld.c +7 -7
@@ -378,7 +378,7 @@ cld_not_implemented(struct cld_client *clnt) bsize =cld_message_size (cmsg); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize);/* reopen pipe, just to be sure */
@@ -409,7 +409,7 @@ cld_get_version(struct cld_client *clnt)xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {
@@ -459,7 +459,7 @@ reply:xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {
@@ -498,7 +498,7 @@ reply: cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {
@@ -548,7 +548,7 @@ reply: cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {
@@ -607,7 +607,7 @@ reply:xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {
@@ -667,7 +667,7 @@ reply:xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {
utils/nfsdcld/sqlite.c +3 -3
@@ -512,7 +512,7 @@ sqlite_startup_query_grace(void) current_epoch = tcur; recovery_epoch = trec; ret =0 ; -xlog (D_GENERAL ,"%s: current_epoch=%lu recovery_epoch=%lu" , +xlog (D_GENERAL ,"%s: current_epoch=%" PRIu64" recovery_epoch=%" PRIu64, __func__, current_epoch, recovery_epoch); out:sqlite3_finalize (stmt);
@@ -1223,7 +1223,7 @@ sqlite_grace_start(void) current_epoch = tcur; recovery_epoch = trec; -xlog (D_GENERAL ,"%s: current_epoch=%lu recovery_epoch=%lu" , +xlog (D_GENERAL ,"%s: current_epoch=%" PRIu64" recovery_epoch=%" PRIu64, __func__, current_epoch, recovery_epoch); out:
@@ -1282,7 +1282,7 @@ sqlite_grace_done(void) } recovery_epoch =0 ; -xlog (D_GENERAL ,"%s: current_epoch=%lu recovery_epoch=%lu" , +xlog (D_GENERAL ,"%s: current_epoch=%" PRIu64" recovery_epoch=%" PRIu64, __func__, current_epoch, recovery_epoch); out:
Signature · 1 line
2.23.0
Quoted 1 line · Doug Nazar
Signed-off-by Doug Nazar <[email protected]>
Committed... (tag: nfs-utils-2-4-3-rc2)
steved.
Quoted 104 lines
--- utils/nfsdcld/nfsdcld.c | 14 +++++++------- utils/nfsdcld/sqlite.c | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-)utils/nfsdcld/nfsdcld.c +7
-7@@ -378,7 +378,7 @@ cld_not_implemented(struct cld_client *clnt) bsize =cld_message_size (cmsg); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize);/* reopen pipe, just to be sure */ @@ -409,7 +409,7 @@ cld_get_version(struct cld_client *clnt)xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {@@ -459,7 +459,7 @@ reply:xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {@@ -498,7 +498,7 @@ reply: cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {@@ -548,7 +548,7 @@ reply: cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {@@ -607,7 +607,7 @@ reply:xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {@@ -667,7 +667,7 @@ reply:xlog (D_GENERAL ,"Doing downcall with status %d" , cmsg->cm_status); wsize =atomicio ((void *)write, clnt->cl_fd, cmsg, bsize);if (wsize != bsize) { -xlog (L_ERROR ,"%s: problem writing to cld pipe (%ld): %m" , +xlog (L_ERROR ,"%s: problem writing to cld pipe (%zd): %m" , __func__, wsize); ret =cld_pipe_open (clnt);if (ret) {utils/nfsdcld/sqlite.c +3
-3@@ -512,7 +512,7 @@ sqlite_startup_query_grace(void) current_epoch = tcur; recovery_epoch = trec; ret =0 ; -xlog (D_GENERAL ,"%s: current_epoch=%lu recovery_epoch=%lu" , +xlog (D_GENERAL ,"%s: current_epoch=%" PRIu64" recovery_epoch=%" PRIu64, __func__, current_epoch, recovery_epoch); out:sqlite3_finalize (stmt);@@ -1223,7 +1223,7 @@ sqlite_grace_start(void) current_epoch = tcur; recovery_epoch = trec; -xlog (D_GENERAL ,"%s: current_epoch=%lu recovery_epoch=%lu" , +xlog (D_GENERAL ,"%s: current_epoch=%" PRIu64" recovery_epoch=%" PRIu64, __func__, current_epoch, recovery_epoch); out:@@ -1282,7 +1282,7 @@ sqlite_grace_done(void) } recovery_epoch =0 ; -xlog (D_GENERAL ,"%s: current_epoch=%lu recovery_epoch=%lu" , +xlog (D_GENERAL ,"%s: current_epoch=%" PRIu64" recovery_epoch=%" PRIu64, __func__, current_epoch, recovery_epoch); out: