[PATCH] MTD: fix printk format warning
Artem Bityutskiy
dedekind at infradead.org
Tue Oct 24 05:24:10 EDT 2006
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
end up with unsigned long, so why not to fix gcc instead?
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list