From: Wu, Josh Date: Wed, 7 May 2014 09:06:08 +0000 (+0800) Subject: mmc: atmel_mci: fix print incorrect buffer content for debug X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9902c7b6f1c9b1e99e4d7c62cc7e98257aa04d0b;p=u-boot.git mmc: atmel_mci: fix print incorrect buffer content for debug Signed-off-by: Josh Wu [fix checkpatch line length warning] Signed-off-by: Andreas Bießmann --- diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index acca0269e5..a57a9b1faf 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