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

Josh Wu josh.wu at atmel.com
Wed May 7 11:06:08 CEST 2014


Signed-off-by: Josh Wu <josh.wu at 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
-- 
1.7.9.5



More information about the U-Boot mailing list