summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client-lk.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-12-13 00:13:15 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-12 23:38:47 -0800
commit26caaeae10414f9888a438ad8559692a7f74f918 (patch)
treeb6c2574676defbbf7a7e56d23a20f994085fb44a /xlators/protocol/client/src/client-lk.c
parentaaad9c6f6ebe4bff3307e532cd802fafaed4a67f (diff)
protocol: fix warnings due to format string mismatches during invocation of gf_log.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2211 ((re)introduce warnings for format string/parameter mismatch) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2211
Diffstat (limited to 'xlators/protocol/client/src/client-lk.c')
-rw-r--r--xlators/protocol/client/src/client-lk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/protocol/client/src/client-lk.c b/xlators/protocol/client/src/client-lk.c
index ee5952257..c018d5375 100644
--- a/xlators/protocol/client/src/client-lk.c
+++ b/xlators/protocol/client/src/client-lk.c
@@ -35,10 +35,10 @@ __dump_client_lock (client_posix_lock_t *lock)
this = THIS;
gf_log (this->name, GF_LOG_TRACE,
- "{fd=%lld}"
+ "{fd=%p}"
"{%s lk-owner:%"PRIu64" %"PRId64" - %"PRId64"}"
"{start=%"PRId64" end=%"PRId64"}",
- (unsigned long long)lock->fd,
+ lock->fd,
lock->fl_type == F_WRLCK ? "Write-Lock" : "Read-Lock",
lock->owner,
lock->user_flock.l_start,
@@ -581,7 +581,7 @@ construct_reserve_unlock (struct gf_flock *lock, call_frame_t *frame,
lock->l_start = 0;
lock->l_whence = SEEK_SET;
lock->l_len = 0; /* Whole file */
- lock->l_pid = (uint64_t)frame->root;
+ lock->l_pid = (uint64_t)(unsigned long)frame->root;
frame->root->lk_owner = client_lock->owner;