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

Attachment: pgp0eDNnKwktG.pgp
Description: PGP signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to