diff options
author | Niels de Vos <ndevos@redhat.com> | 2016-07-16 14:21:47 +0200 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-07-17 06:36:58 -0700 |
commit | 3af889f02722f4636d2ea30570de6477e8b5a3a9 (patch) | |
tree | 1b80f4eb54ace923f5a82c0a8b2c7df808869063 /xlators/experimental/jbr-server | |
parent | eb4ea14dcdf6dc2f741a2ed14150ee6ea83b92ce (diff) |
build: correctly format some (s)size_t messages
On 32-bit builds the are are warnings like these:
posix.c:6438: warning: format '%ld' expects type 'long int', but argument 11 has type 'ssize_t'
Instead of using "%l" for (signed) size_t variables, "%z" should be
used.
BUG: 1198849
Change-Id: I6f57b5e8ea174dd9e3056aff5da685e497894ccf
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/14933
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/experimental/jbr-server')
-rw-r--r-- | xlators/experimental/jbr-server/src/jbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/experimental/jbr-server/src/jbr.c b/xlators/experimental/jbr-server/src/jbr.c index e1eed3f6094..e07c511f4a9 100644 --- a/xlators/experimental/jbr-server/src/jbr.c +++ b/xlators/experimental/jbr-server/src/jbr.c @@ -1258,7 +1258,7 @@ jbr_next_entry (call_frame_t *frame, xlator_t *this) op_errno = EIO; gf_msg (this->name, GF_LOG_ERROR, 0, J_MSG_SYS_CALL_FAILURE, - "got %ld/%d bytes for next entry", + "got %zd/%d bytes for next entry", nbytes, CHANGELOG_ENTRY_SIZE); } goto err; |