From c147c36a70505ff239cef48030422840abd3fbcd Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Wed, 18 Jun 2014 14:46:05 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/8105 Tested-by: Gluster Build System Reviewed-by: Harshavardhana Reviewed-by: Raghavendra Bhat Reviewed-by: Niels de Vos Reviewed-by: Vijay Bellur --- xlators/storage/bd/src/bd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/storage/bd/src/bd.h') diff --git a/xlators/storage/bd/src/bd.h b/xlators/storage/bd/src/bd.h index 62add16cdf4..3491349f2e4 100644 --- a/xlators/storage/bd/src/bd.h +++ b/xlators/storage/bd/src/bd.h @@ -152,9 +152,9 @@ char *page_aligned_alloc (size_t size, char **aligned_buf); int bd_validate_bd_xattr (xlator_t *this, char *bd, char **type, uint64_t *lv_size, uuid_t uuid); uint64_t bd_get_default_extent (bd_priv_t *priv); -uint64_t bd_adjust_size (bd_priv_t *priv, uint64_t size); +uint64_t bd_adjust_size (bd_priv_t *priv, size_t size); int bd_create (uuid_t uuid, uint64_t size, char *type, bd_priv_t *priv); -int bd_resize (bd_priv_t *priv, uuid_t uuid, off_t size); +int bd_resize (bd_priv_t *priv, uuid_t uuid, size_t size); int bd_delete_lv (bd_priv_t *priv, const char *lv_name, int *op_errno); int bd_snapshot_create (bd_local_t *local, bd_priv_t *priv); int bd_clone (bd_local_t *local, bd_priv_t *priv); @@ -167,7 +167,7 @@ int bd_clone (bd_local_t *local, bd_priv_t *priv); int bd_merge (bd_priv_t *priv, uuid_t gfid); int bd_get_origin (bd_priv_t *priv, loc_t *loc, fd_t *fd, dict_t *dict); int bd_do_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, - off_t offset, off_t len, struct iatt *prebuf, + off_t offset, size_t len, struct iatt *prebuf, struct iatt *postbuf); #endif -- cgit