diff mbox

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

Message ID 1399453568-30012-1-git-send-email-josh.wu@atmel.com
State Accepted, archived
Delegated to: Andreas Bießmann
Headers show

Commit Message

Josh Wu May 7, 2014, 9:06 a.m. UTC
Signed-off-by: Josh Wu <josh.wu@atmel.com>
---
 drivers/mmc/gen_atmel_mci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Bießmann May 26, 2014, 10:12 p.m. UTC | #1
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
diff mbox

Patch

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