[PATCH] MTD: m25p80: add debugging trace in sst_write()
Nicolas Ferre
nicolas.ferre at atmel.com
Fri Jul 8 12:43:17 EDT 2011
Le 15/12/2010 14:25, Sergei Shtylyov :
> Hello.
>
> On 15-12-2010 14:59, Nicolas Ferre wrote:
>
>> Add a DEBUG(MTD_DEBUG_LEVEL2, ..) trace at beginning of sst_write()
>> function as
>> it is done in m25p80_write() function.
>
>> Signed-off-by: Nicolas Ferre<nicolas.ferre at atmel.com>
> [...]
>
>> diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
>> index bf5a002..e6b5707 100644
>> --- a/drivers/mtd/devices/m25p80.c
>> +++ b/drivers/mtd/devices/m25p80.c
>> @@ -482,6 +482,10 @@ static int sst_write(struct mtd_info *mtd, loff_t
>> to, size_t len,
>> size_t actual;
>> int cmd_sz, ret;
>>
>> + DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n",
>> + dev_name(&flash->spi->dev), __func__, "to",
>
> What's the point of printing "to" as variable? :-)
Good question... Maybe a way to have the same shape of messages...
In my patch it is for sure to comply with this driver way of dealing
with DEBUG messages.
It is "to" in this function like its sister m25p80_write(). But it is
also "from" or "at" in others...
>> + (u32)to, len);
>> +
Cheers,
--
Nicolas Ferre
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
More information about the linux-arm-kernel
mailing list