[PATCH] MTD: fix printk format warning

Artem Bityutskiy dedekind at infradead.org
Tue Oct 24 12:57:13 EDT 2006


On Tue, 2006-10-24 at 08:29 -0700, Randy.Dunlap wrote:
> which I suppose is what Artem missed.  I.e., it's not always unsigned long.
> However, I won't deny that gcc seems odd here.

I just wanted to say that (unsigned long)a - b + 1 has "unsigned long"
type even if "a" and "b" are u32 or u64. I would have understood you if
you had said that you cut "a" because of the u64->unsigned long casting,
but I understood that the rationale for the change was to fix print
format warning...

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)





More information about the linux-mtd mailing list