Bug 1336510 - posix: compiler warning format string
Summary: posix: compiler warning format string
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: GlusterFS
Classification: Community
Component: posix
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ravishankar N
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-16 16:55 UTC by Kaleb KEITHLEY
Modified: 2018-10-08 11:05 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-10-08 11:05:17 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Kaleb KEITHLEY 2016-05-16 16:55:11 UTC
Description of problem:

Making all in storage
Making all in posix
Making all in src
  CC       posix.lo
  CC       posix-aio.lo
  CC       posix-handle.lo
  CC       posix-helpers.lo
In file included from ../../../../libglusterfs/src/glusterfs.h:35:0,
                 from posix.c:38:
posix.c: In function 'posix_rchecksum':
posix.c:6366:33: warning: format '%ld' expects argument of type 'long int', but argument 11 has type 'ssize_t {aka int}' [-Wformat=]
                                 "pread of %d bytes returned %ld ",
                                 ^
../../../../libglusterfs/src/logging.h:213:51: note: in definition of macro 'gf_msg'
                         levl, errnum, 0, msgid, ##fmt);         \
                                                   ^~~
  CCLD     posix.la





Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Amar Tumballi 2018-10-08 11:05:17 UTC
fixed on master! should be available on glusterfs-5.0


Note You need to log in before you can comment on or make changes to this bug.