[U-Boot] [PATCH] mmc: atmel_mci: fix print incorrect buffer content for debug

Signed-off-by: Josh Wu josh.wu@atmel.com --- drivers/mmc/gen_atmel_mci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index acca026..eb2fe1c 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -244,7 +244,7 @@ mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) if (data->flags & MMC_DATA_READ) { printf("Read Data:\n"); - print_buffer(0, data->dest, 1, + print_buffer(0, data->dest + word_count * 4 * block_count, 1, word_count*4, 0); } #endif

Dear Josh Wu,
Josh Wu Josh.wu@atmel.com writes:
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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
applied to u-boot-atmel/master with slight changes to be checkpatch save, thanks!
Best regards, Andreas Bießmann
participants (2)
-
Andreas Bießmann
-
Josh Wu