diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2014-06-18 14:46:05 -0400 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-11-26 00:26:53 -0800 |
commit | c147c36a70505ff239cef48030422840abd3fbcd (patch) | |
tree | 710057d06f614c654b8636e8df312ebd73cd0fc5 /xlators/storage/bd/src/bd.c | |
parent | 6c5b74c66cc0eb10edf5e4d3a726c7efddb5842c (diff) |
core: fix remaining *printf formation warnings on 32-bit
This fixes a few lingering size_t problems. Of particular note are
some uses of off_t for size params in function calls.
There is no correct, _portable_ way to correctly print an off_t. The
best you can do is use a scratch int64_t/PRId64 or uint64_t/PRIu64.
Change-Id: I86f3cf4678c7dbe5cad156ae8d540a66545f000d
BUG: 1110916
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/8105
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/storage/bd/src/bd.c')
-rw-r--r-- | xlators/storage/bd/src/bd.c | 5 |
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; } |