[MPlayer-dev-eng] [PATCH] fix printf format string warnings

Rich Felker dalias at aerifal.cx
Wed Nov 21 19:22:03 CET 2007


On Wed, Nov 21, 2007 at 11:49:10AM +0100, Diego Biurrun wrote:
> This patch fixes a couple of "format '%d' expects type 'int', but
> argument 2 has type 'long int'" warnings.  OK to apply?

What type are those struct fields? If they're something like uint32_t
then either use constants from inttypes.h or cast to long before
printing... Just assuming they're the same as long would be very wrong
and break 64bit archs!

Rich



More information about the MPlayer-dev-eng mailing list