[PATCH] cast current_wordsize to an int
Dmitry V. Levin
ldv at altlinux.org
Sat Apr 28 02:18:21 UTC 2012
On Fri, Apr 27, 2012 at 06:58:20PM -0400, Mike Frysinger wrote:
> On 64bit systems with a single personality, we see:
> count.c: In function 'call_summary':
> count.c:223:5: warning: format '%u' expects type 'unsigned int',
> but argument 3 has type 'long unsigned int'
>
> Since on multi-personality systems this is an array of ints, cast
> the multiplication to an int and update the printf format.
>
> * count.c (call_summary): Change %u to %i and cast first argument to int.
strace code traditionally uses %d variant, so I've applied the fix with %i
replaced by %d for consistency.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120428/d49bd070/attachment.bin>
More information about the Strace-devel
mailing list