summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-09-21 05:32:32 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-22 06:12:58 -0700
commit6f7c6c102a418553a109e1b2bb5b1f87578bab58 (patch)
tree6e935485a89e15782de5f2af6a0dd625ef48a66c
parent1fc259cb73cb199052519f548dfbb1b83829b28f (diff)
booster: Fix build warnings
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 275 (libglusterfsclient: Generic build failure bug for libglusterfsclient and booster) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=275
-rw-r--r--booster/src/booster.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/booster/src/booster.c b/booster/src/booster.c
index f53772410ce..ff4da3a1b64 100644
--- a/booster/src/booster.c
+++ b/booster/src/booster.c
@@ -649,8 +649,8 @@ pread (int fd, void *buf, size_t count, unsigned long offset)
ssize_t ret;
glusterfs_file_t glfs_fd = 0;
- gf_log ("booster", GF_LOG_DEBUG, "pread: fd %d, count %ld, offset %ld",
- fd, count, offset);
+ gf_log ("booster", GF_LOG_DEBUG, "pread: fd %d, count %lu, offset %lu"
+ ,fd, (long unsigned)count, offset);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
if (!glfs_fd) {
gf_log ("booster", GF_LOG_DEBUG, "Not booster fd");
@@ -675,8 +675,8 @@ pread64 (int fd, void *buf, size_t count, uint64_t offset)
ssize_t ret;
glusterfs_file_t glfs_fd = 0;
- gf_log ("booster", GF_LOG_DEBUG, "pread64: fd %d, count %ld, offset"
- " %ld", fd, count, offset);
+ gf_log ("booster", GF_LOG_DEBUG, "pread64: fd %d, count %lu, offset %"
+ PRIu64, fd, (long unsigned)count, offset);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
if (!glfs_fd) {
gf_log ("booster", GF_LOG_DEBUG, "Not booster fd");
@@ -701,7 +701,8 @@ read (int fd, void *buf, size_t count)
int ret;
glusterfs_file_t glfs_fd;
- gf_log ("booster", GF_LOG_DEBUG, "read: fd %d, count %ld", fd, count);
+ gf_log ("booster", GF_LOG_DEBUG, "read: fd %d, count %lu", fd,
+ (long unsigned)count);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
if (!glfs_fd) {
gf_log ("booster", GF_LOG_DEBUG, "Not booster fd");
@@ -751,7 +752,7 @@ write (int fd, const void *buf, size_t count)
int ret;
glusterfs_file_t glfs_fd = 0;
- gf_log ("booster", GF_LOG_DEBUG, "write: fd %d, count %ld", fd, count);
+ gf_log ("booster", GF_LOG_DEBUG, "write: fd %d, count %d", fd, count);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
@@ -803,8 +804,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_DEBUG, "pwrite: fd %d, count %ld, offset %ld"
- , fd, count, offset);
+ gf_log ("booster", GF_LOG_DEBUG, "pwrite: fd %d, count %d, offset %lu",
+ fd, count, offset);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
if (!glfs_fd) {
@@ -830,8 +831,8 @@ 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_DEBUG, "pwrite64: fd %d, count %ld, offset"
- "%ld", fd, count, offset);
+ gf_log ("booster", GF_LOG_DEBUG, "pwrite64: fd %d, count %d, offset %"
+ PRIu64, fd, count, offset);
glfs_fd = booster_fdptr_get (booster_fdtable, fd);
if (!glfs_fd) {
@@ -1275,8 +1276,8 @@ ftruncate (int fd, off_t length)
int ret = -1;
glusterfs_file_t fh = NULL;
- gf_log ("booster", GF_LOG_DEBUG, "ftruncate: fd %d, length: %ld", fd,
- length);
+ gf_log ("booster", GF_LOG_DEBUG, "ftruncate: fd %d, length: %"PRIu64,fd
+ , length);
fh = booster_fdptr_get (booster_fdtable, fd);
if (!fh) {
gf_log ("booster", GF_LOG_DEBUG, "Not a booster fd");
@@ -2490,7 +2491,7 @@ sendfile (int out_fd, int in_fd, off_t *offset, size_t count)
ssize_t ret = -1;
gf_log ("booster", GF_LOG_DEBUG, "sendfile: in fd %d, out fd %d, offset"
- " %ld, count %ld", in_fd, out_fd, offset, count);
+ " %"PRIu64", count %d", in_fd, out_fd, *offset, count);
/*
* handle sendfile in booster only if in_fd corresponds to a glusterfs
* file handle
@@ -2520,7 +2521,7 @@ sendfile64 (int out_fd, int in_fd, off_t *offset, size_t count)
ssize_t ret = -1;
gf_log ("booster", GF_LOG_DEBUG, "sendfile64: in fd %d, out fd %d,"
- " offset %ld, count %ld", in_fd, out_fd, offset, count);
+ " offset %"PRIu64", count %d", in_fd, out_fd, *offset, count);
/*
* handle sendfile in booster only if in_fd corresponds to a glusterfs
* file handle