Bug 763944 (GLUSTER-2212) - Fix warnings due to format string mismatches in gf_log
Summary: Fix warnings due to format string mismatches in gf_log
Keywords:
Status: CLOSED DUPLICATE of bug 763943
Alias: GLUSTER-2212
Product: GlusterFS
Classification: Community
Component: unclassified
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-13 04:25 UTC by Raghavendra G
Modified: 2015-12-01 16:45 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: All
Documentation: DNR
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Raghavendra G 2010-12-13 01:26:32 UTC

*** This bug has been marked as a duplicate of bug 2211 ***

Comment 1 Raghavendra G 2010-12-13 04:25:06 UTC
pasting Avati's mail verbatim:

The patch to reintroduce the warnings in your local build can be applied from here - http://patches.gluster.com/patch/5862/. Please verify your fixes with both a 32bit build and a 64bit build.

--WARNINGS--

Inode -


../../../libglusterfs/src/inode.c: In function '__is_dentry_cyclic':
../../../libglusterfs/src/inode.c:217: warning: too many arguments for format


RPC -


../../../../rpc/rpc-lib/src/rpcsvc.c: In function 'rpcsvc_submit_generic':
../../../../rpc/rpc-lib/src/rpcsvc.c:1543: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint32_t'
../../../../rpc/rpc-lib/src/rpcsvc.c:1550: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint32_t'
../../../../rpc/rpc-lib/src/rpc-clnt.c: In function 'call_bail':
../../../../rpc/rpc-lib/src/rpc-clnt.c:191: warning: format '%lx' expects type 'long unsigned int', but argument 6 has type 'uint32_t'
../../../../rpc/rpc-lib/src/rpc-clnt.c: In function 'rpc_clnt_reply_init':
../../../../rpc/rpc-lib/src/rpc-clnt.c:626: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint32_t'
../../../../rpc/rpc-lib/src/rpc-clnt.c: In function 'rpc_clnt_submit':
../../../../rpc/rpc-lib/src/rpc-clnt.c:1482: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint32_t'
../../../../rpc/rpc-lib/src/rpc-clnt.c:1495: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint32_t'


AFR -


../../../../../xlators/cluster/afr/src/afr-dir-read.c: In function 'afr_opendir_cbk':
../../../../../xlators/cluster/afr/src/afr-dir-read.c:261: warning: format '%d' expects type 'int', but argument 3 has type 'struct fd_t *'
../../../../../xlators/cluster/afr/src/afr-lk-common.c: In function 'afr_save_locked_fd':
../../../../../xlators/cluster/afr/src/afr-lk-common.c:1787: warning: too few arguments for format
../../../../../xlators/cluster/afr/src/afr.c: In function 'validate_options':
../../../../../xlators/cluster/afr/src/afr.c:131: warning: too many arguments for format
../../../../../xlators/cluster/afr/src/afr.c:150: warning: too many arguments for format
../../../../../xlators/cluster/afr/src/afr.c:170: warning: too many arguments for format


DHT -


../../../../../xlators/cluster/dht/src/dht.c: In function 'reconfigure':
../../../../../xlators/cluster/dht/src/dht.c:348: warning: too many arguments for format


Protocol -


../../../../../xlators/protocol/client/src/client-handshake.c: In function 'client3_1_reopen_cbk':
../../../../../xlators/protocol/client/src/client-handshake.c:401: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
../../../../../xlators/protocol/client/src/client-handshake.c:401: warning: too many arguments for format
../../../../../xlators/protocol/client/src/client-handshake.c:405: warning: format '%ld' expects type 'long int', but argument 4 has type 'int'
../../../../../xlators/protocol/client/src/client-handshake.c:405: warning: too many arguments for format
../../../../../xlators/protocol/client/src/client-handshake.c: In function 'client3_1_reopendir_cbk':
../../../../../xlators/protocol/client/src/client-handshake.c:493: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
../../../../../xlators/protocol/client/src/client-handshake.c:493: warning: too many arguments for format
../../../../../xlators/protocol/client/src/client-handshake.c:497: warning: format '%ld' expects type 'long int', but argument 4 has type 'int'
../../../../../xlators/protocol/client/src/client-handshake.c:497: warning: too many arguments for format


Write-behind -


../../../../../xlators/performance/write-behind/src/write-behind.c: In function 'reconfigure':
../../../../../xlators/performance/write-behind/src/write-behind.c:2810: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'
../../../../../xlators/performance/write-behind/src/write-behind.c:2819: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'
../../../../../xlators/performance/write-behind/src/write-behind.c:2828: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'
../../../../../xlators/performance/write-behind/src/write-behind.c:2837: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'


io-threads -


../../../../../xlators/performance/io-threads/src/io-threads.c: In function 'reconfigure':
../../../../../xlators/performance/io-threads/src/io-threads.c:2144: warning: too many arguments for format
../../../../../xlators/performance/io-threads/src/io-threads.c:2151: warning: too many arguments for format


io-cache -


../../../../../xlators/performance/io-cache/src/io-cache.c: In function 'validate_options':
../../../../../xlators/performance/io-cache/src/io-cache.c:1559: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'
../../../../../xlators/performance/io-cache/src/io-cache.c:1569: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'
../../../../../xlators/performance/io-cache/src/io-cache.c: In function 'reconfigure':
../../../../../xlators/performance/io-cache/src/io-cache.c:1705: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'
../../../../../xlators/performance/io-cache/src/io-cache.c:1714: warning: format '%d' expects type 'int', but argument 4 has type 'uint64_t'


quick-read -


../../../../../xlators/performance/quick-read/src/quick-read.c: In function 'reconfigure':
../../../../../xlators/performance/quick-read/src/quick-read.c:2553: warning: format '%d' expects type 'int', but argument 3 has type 'uint64_t'


trash -


In file included from ../../../../../xlators/features/trash/src/trash.h:33,
                 from ../../../../../xlators/features/trash/src/trash.c:25:
../../../../../libglusterfs/src/inode.c: In function '__is_dentry_cyclic':
../../../../../libglusterfs/src/inode.c:217: warning: too many arguments for format


quota -


../../../../../xlators/features/quota/src/quota.c: In function 'reconfigure':
../../../../../xlators/features/quota/src/quota.c:1088: warning: spurious trailing '%' in format


NFS -


../../../../../xlators/nfs/server/src/nfs3-fh.c: In function 'nfs3_log_fh':
../../../../../xlators/nfs/server/src/nfs3-fh.c:203: warning: format '%d' expects type 'int', but argument 4 has type 'char *'
../../../../../xlators/nfs/server/src/nfs3-helpers.c: In function 'nfs3_fh_resolve_search_dir':
../../../../../xlators/nfs/server/src/nfs3-helpers.c:2942: warning: too many arguments for format
../../../../../xlators/nfs/server/src/nfs3-helpers.c: In function 'nfs3_fh_resolve_inode_hard':
../../../../../xlators/nfs/server/src/nfs3-helpers.c:3003: warning: too many arguments for format


glusterd -


../../../../../xlators/mgmt/glusterd/src/glusterd-volgen.c: In function 'client_graph_builder':
../../../../../xlators/mgmt/glusterd/src/glusterd-volgen.c:1114: warning: format '%d' expects type 'int', but argument 3 has type 'char *'
../../../../../xlators/mgmt/glusterd/src/glusterd-volgen.c:1114: warning: too many arguments for format

--WARNINGS--


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