mtd: m25p80: add debugging trace in sst_write

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jan 6 10:59:03 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=dcf12463c3416b4a8fc84545233424df0a91e406
Commit:     dcf12463c3416b4a8fc84545233424df0a91e406
Parent:     494f45d55bf47d7130e8d9818e9a8965f6504462
Author:     Nicolas Ferre <nicolas.ferre at atmel.com>
AuthorDate: Wed Dec 15 12:59:32 2010 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Jan 6 15:28:06 2011 +0000

    mtd: m25p80: add debugging trace in sst_write
    
    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>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/devices/m25p80.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index eabe5fb..9c59ff6 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -497,6 +497,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",
+			(u32)to, len);
+
 	*retlen = 0;
 
 	/* sanity checks */



More information about the linux-mtd-cvs mailing list