Skip to contentSkip to conversation

OCFS2 printf format warnings

DISCUSSION Meelis Roos 2 participants 2 messages May 18, 2008 – May 19, 2008

lore
Share & tools
lore
#0 lore raw

Just noticed these on sparc64:

CC [M] fs/ocfs2/cluster/netdebug.o
fs/ocfs2/cluster/netdebug.c: In function 'nst_seq_show':
fs/ocfs2/cluster/netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 13 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 15 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 17 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c: In function 'sc_seq_show':
fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 19 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 21 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 23 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 25 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 27 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 29 has type 'suseconds_t'

Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw
Quoted 14 lines · Meelis Roos

Just noticed these on sparc64:

CC [M] fs/ocfs2/cluster/netdebug.o
fs/ocfs2/cluster/netdebug.c: In function 'nst_seq_show':
fs/ocfs2/cluster/netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 13 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 15 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 17 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c: In function 'sc_seq_show':
fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 19 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 21 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 23 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 25 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 27 has type 'suseconds_t' fs/ocfs2/cluster/netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 29 has type 'suseconds_t'

Ok, these were introduced by:

commit 2309e9e040fe29469fb85a384636c455b62fe525

Author: Sunil Mushran <[email protected]>
Date:   Mon Apr 14 10:46:19 2008 -0700

ocfs2/net: Add debug interface to o2net

...

It looks like we need some casts... Sunil, care to fix this up?

	--Mark

--
Mark Fasheh