[PATCH] MTD: fix printk format warning

Ben Dooks ben at fluff.org
Tue Oct 24 06:02:45 EDT 2006


On Tue, Oct 24, 2006 at 12:24:10PM +0300, Artem Bityutskiy wrote:
> On Mon, 2006-10-23 at 21:48 -0700, Randy Dunlap wrote:
> > (may be a gcc phenomenon)
> > Fix printk format warning:
> > drivers/mtd/maps/physmap.c:93: warning: long long unsigned int format, long unsigned int arg (arg 2)
> > 
> > Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
> 
> ... snip ...
> 
> >       	printk(KERN_NOTICE "physmap platform flash device: %.8llx at %.8llx\n",
> > -	    (unsigned long long)dev->resource->end - dev->resource->start + 1,
> > +	    (unsigned long long)(dev->resource->end - dev->resource->start + 1),
> >  	    (unsigned long long)dev->resource->start);
> 
> Hmm, AFAIK
> 
> "(unsigned long) dev->resource->end - dev->resource->start + 1" should 

I thought that 'z' was the modifier to %x for resources?

-- 
Ben (ben at fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'




More information about the linux-mtd mailing list