projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d82d89
)
mmc: atmel_mci: fix print incorrect buffer content for debug
author
Wu, Josh
<Josh.wu@atmel.com>
Wed, 7 May 2014 09:06:08 +0000
(17:06 +0800)
committer
Andreas Bießmann
<andreas.devel@googlemail.com>
Mon, 26 May 2014 22:10:46 +0000
(
00:10
+0200)
Signed-off-by: Josh Wu <josh.wu@atmel.com>
[fix checkpatch line length warning]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mmc/gen_atmel_mci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/gen_atmel_mci.c
b/drivers/mmc/gen_atmel_mci.c
index acca0269e585a702fd9dfac5877a0bc449ab2b27..a57a9b1faff2f31079dc2349fd2240f82f56a894 100644
(file)
--- a/
drivers/mmc/gen_atmel_mci.c
+++ b/
drivers/mmc/gen_atmel_mci.c
@@
-243,9
+243,10
@@
mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
#ifdef DEBUG
if (data->flags & MMC_DATA_READ)
{
+ u32 cnt = word_count * 4;
printf("Read Data:\n");
- print_buffer(0, data->dest
, 1
,
-
word_count*4
, 0);
+ print_buffer(0, data->dest
+ cnt * block_count
,
+
1, cnt
, 0);
}
#endif
#ifdef DEBUG