summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/lib
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-04-07 10:07:29 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-08 03:08:26 -0700
commitc724beb161ce5f21862e9bb425736efed7532777 (patch)
tree03074a2ac92e9df0505b54877821cdb14fb5aa3f /xlators/nfs/lib
parentd9e256b0e4203a7f79f862ecc83c509e516f0e14 (diff)
NFS: type fixes: some portability cleanup
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 399 (NFS translator with Mount v3 and NFS v3 support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=399
Diffstat (limited to 'xlators/nfs/lib')
-rw-r--r--xlators/nfs/lib/src/rpcsvc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c
index e76ee16087a..47510ad8a35 100644
--- a/xlators/nfs/lib/src/rpcsvc.c
+++ b/xlators/nfs/lib/src/rpcsvc.c
@@ -1362,7 +1362,7 @@ rpcsvc_record_build_header (char *recordstart, size_t rlen,
fraglen = payload + replyhdr.iov_len;
gf_log (GF_RPCSVC, GF_LOG_TRACE, "Reply fraglen %zu, payload: %zu, "
- "rpc hdr: %ld", fraglen, payload, replyhdr.iov_len);
+ "rpc hdr: %zu", fraglen, payload, replyhdr.iov_len);
/* Since we're not spreading RPC records over mutiple fragments
* we just set this fragment as the first and last fragment for this
@@ -1398,7 +1398,7 @@ rpcsvc_conn_submit (rpcsvc_conn_t *conn, struct iovec hdr,
if ((!conn) || (!hdr.iov_base) || (!hdriob))
return -1;
- gf_log (GF_RPCSVC, GF_LOG_TRACE, "Tx Header: %ld, payload: %ld",
+ gf_log (GF_RPCSVC, GF_LOG_TRACE, "Tx Header: %zu, payload: %zu",
hdr.iov_len, msgvec.iov_len);
/* Now that we have both the RPC and Program buffers in xdr format
* lets hand it to the transmission layer.
@@ -1569,7 +1569,7 @@ rpcsvc_submit_generic (rpcsvc_request_t *req, struct iovec msgvec,
return -1;
conn = req->conn;
- gf_log (GF_RPCSVC, GF_LOG_TRACE, "Tx message: %ld", msgvec.iov_len);
+ gf_log (GF_RPCSVC, GF_LOG_TRACE, "Tx message: %zu", msgvec.iov_len);
/* Build the buffer containing the encoded RPC reply. */
replyiob = rpcsvc_record_build_record (req, msgvec.iov_len, &recordhdr);
if (!replyiob) {
@@ -1623,7 +1623,7 @@ rpcsvc_request_attach_vector (rpcsvc_request_t *req, struct iovec msgvec,
if ((!req) || (!msgvec.iov_base))
return -1;
- gf_log (GF_RPCSVC, GF_LOG_TRACE, "Tx Vector: %ld", msgvec.iov_len);
+ gf_log (GF_RPCSVC, GF_LOG_TRACE, "Tx Vector: %zu", msgvec.iov_len);
if (finalvector)
txflags |= RPCSVC_TXB_LAST;
/* We only let the user decide whether this is the last vector for the
@@ -2312,7 +2312,7 @@ rpcsvc_record_update_state (rpcsvc_conn_t *conn, ssize_t dataread)
* fragment needs. Something is seriously wrong.
*/
if (dataread > 0) {
- gf_log (GF_RPCSVC, GF_LOG_TRACE, "Data Left: %ld", dataread);
+ gf_log (GF_RPCSVC, GF_LOG_TRACE, "Data Left: %zd", dataread);
gf_log (GF_RPCSVC, GF_LOG_ERROR, "Unwanted data read from "
" connection.");
}
@@ -2365,7 +2365,7 @@ rpcsvc_conn_data_poll_in (rpcsvc_conn_t *conn)
goto err;
dataread = rpcsvc_socket_read (conn->sockfd, readaddr, readsize);
- gf_log (GF_RPCSVC, GF_LOG_TRACE, "conn: 0x%lx, readsize: %ld, dataread: %ld",
+ gf_log (GF_RPCSVC, GF_LOG_TRACE, "conn: 0x%lx, readsize: %zu, dataread: %zd",
(long)conn, readsize, dataread);
if (dataread > 0)
@@ -2414,8 +2414,8 @@ tx_remaining:
gf_log (GF_RPCSVC, GF_LOG_TRACE, "Last Tx Buf");
rpcsvc_socket_unblock_tx (conn->sockfd);
}
- gf_log (GF_RPCSVC, GF_LOG_TRACE, "conn: 0x%lx, Tx request: %ld,"
- " Tx sent: %ld", (long)conn, writesize, written);
+ gf_log (GF_RPCSVC, GF_LOG_TRACE, "conn: 0x%lx, Tx request: %zu,"
+ " Tx sent: %zd", (long)conn, writesize, written);
/* There was an error transmitting this buffer */
if (written == -1)