summaryrefslogtreecommitdiffstats
path: root/xlators/storage/bd/src/bd.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/bd/src/bd.c')
-rw-r--r--xlators/storage/bd/src/bd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/storage/bd/src/bd.c b/xlators/storage/bd/src/bd.c
index 750b009430a..41fbab26972 100644
--- a/xlators/storage/bd/src/bd.c
+++ b/xlators/storage/bd/src/bd.c
@@ -1792,10 +1792,11 @@ __bd_pwritev (int fd, struct iovec *vector, int count, off_t offset,
retval = pwritev (fd, vector, count, offset);
if (retval == -1) {
+ int64_t off = offset;
gf_log (THIS->name, GF_LOG_WARNING,
- "base %p, length %ld, offset %ld, message %s",
+ "base %p, length %zd, offset %" PRId64 ", message %s",
vector[index].iov_base, vector[index].iov_len,
- internal_offset, strerror (errno));
+ off, strerror (errno));
retval = -errno;
goto err;
}