summaryrefslogtreecommitdiffstats
path: root/booster
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-12-03 16:10:17 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-03 13:54:57 -0800
commitaa53bb583d2d01867a2db1d217001fc897e2b835 (patch)
tree2c0f41e380bb33e6d766088ac1a7e7240fc8406d /booster
parentcec1f78d42f49f35448d81c944afb9afae19c959 (diff)
fixing some warnings on 64bit machine.
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 408 (warning while building on 64bit machine..) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=408
Diffstat (limited to 'booster')
-rw-r--r--booster/src/booster.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/booster/src/booster.c b/booster/src/booster.c
index 338d6db73c2..450f24c6bfe 100644
--- a/booster/src/booster.c
+++ b/booster/src/booster.c
@@ -814,7 +814,8 @@ write (int fd, const void *buf, size_t count)
int ret;
glusterfs_file_t glfs_fd = 0;
- gf_log ("booster", GF_LOG_TRACE, "write: fd %d, count %d", fd, count);
+ gf_log ("booster", GF_LOG_TRACE, "write: fd %d, count %"GF_PRI_SIZET,
+ fd, count);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
@@ -866,8 +867,8 @@ pwrite (int fd, const void *buf, size_t count, unsigned long offset)
int ret;
glusterfs_file_t glfs_fd = 0;
- gf_log ("booster", GF_LOG_TRACE, "pwrite: fd %d, count %d, offset %lu",
- fd, count, offset);
+ gf_log ("booster", GF_LOG_TRACE, "pwrite: fd %d, count %"GF_PRI_SIZET
+ ", offset %lu", fd, count, offset);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
if (!glfs_fd) {
@@ -893,10 +894,10 @@ pwrite64 (int fd, const void *buf, size_t count, uint64_t offset)
int ret;
glusterfs_file_t glfs_fd = 0;
- gf_log ("booster", GF_LOG_TRACE, "pwrite64: fd %d, count %d, offset %"
- PRIu64, fd, count, offset);
+ gf_log ("booster", GF_LOG_TRACE, "pwrite64: fd %d, count %"GF_PRI_SIZET
+ ", offset %"PRIu64, fd, count, offset);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
-
+
if (!glfs_fd) {
gf_log ("booster", GF_LOG_TRACE, "Not a booster fd");
if (real_pwrite64 == NULL) {
@@ -2611,7 +2612,8 @@ sendfile (int out_fd, int in_fd, off_t *offset, size_t count)
ssize_t ret = -1;
gf_log ("booster", GF_LOG_TRACE, "sendfile: in fd %d, out fd %d, offset"
- " %"PRIu64", count %d", in_fd, out_fd, *offset, count);
+ " %"PRIu64", count %"GF_PRI_SIZET, in_fd, out_fd, *offset,
+ count);
/*
* handle sendfile in booster only if in_fd corresponds to a glusterfs
* file handle
@@ -2641,7 +2643,8 @@ sendfile64 (int out_fd, int in_fd, off_t *offset, size_t count)
ssize_t ret = -1;
gf_log ("booster", GF_LOG_TRACE, "sendfile64: in fd %d, out fd %d,"
- " offset %"PRIu64", count %d", in_fd, out_fd, *offset, count);
+ " offset %"PRIu64", count %"GF_PRI_SIZET, in_fd, out_fd,
+ *offset, count);
/*
* handle sendfile in booster only if in_fd corresponds to a glusterfs
* file handle