projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
494f45d
)
mtd: m25p80: add debugging trace in sst_write
author
Nicolas Ferre
<nicolas.ferre@atmel.com>
Wed, 15 Dec 2010 11:59:32 +0000
(12:59 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:28:06 +0000
(15:28 +0000)
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@atmel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/m25p80.c
b/drivers/mtd/devices/m25p80.c
index eabe5fb071c6e374efdf52f5b81c19e45a126626..9c59ff6b69265ec70f8dc7174b97e270727be5fb 100644
(file)
--- 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 */