summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2014-05-07 17:06:08 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2014-05-27 00:10:46 +0200
commit9902c7b6f1c9b1e99e4d7c62cc7e98257aa04d0b (patch)
tree82fe3c2783c323e665819dcd65f70af29f660c7b
parent7d82d897722f57389ebe15924f47fab452cc3a19 (diff)
downloadu-boot-imx-9902c7b6f1c9b1e99e4d7c62cc7e98257aa04d0b.zip
u-boot-imx-9902c7b6f1c9b1e99e4d7c62cc7e98257aa04d0b.tar.gz
u-boot-imx-9902c7b6f1c9b1e99e4d7c62cc7e98257aa04d0b.tar.bz2
mmc: atmel_mci: fix print incorrect buffer content for debug
Signed-off-by: Josh Wu <josh.wu@atmel.com> [fix checkpatch line length warning] Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
-rw-r--r--drivers/mmc/gen_atmel_mci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c
index acca026..a57a9b1 100644
--- 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