[PATCHv1 1/5] mkfs.jffs2: fix casting of printf argument

Andy Shevchenko ext-andriy.shevchenko at nokia.com
Thu Apr 14 09:21:54 EDT 2011


On Thu, 2011-04-14 at 15:24 +0300, Artem Bityutskiy wrote:
> On Wed, 2011-04-13 at 16:20 +0300, Andy Shevchenko wrote:
> > The compiler warns us about cast mismatch for %9lu specifier.  In original code
> > the argument has __off64_t type. Here is a simple type casting fix.
> > 
> > Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko at nokia.com>
> 
> If it is off64_t then you should better change the printf() placeholder
> to %ull and cast the argument to (unsigned long long)
> 
I was waiting for such correction because I don't know the limits of the
argument, thanks.


-- 
With Best Regards,
Andy Shevchenko







More information about the linux-mtd mailing list