Skip to content
Snippets Groups Projects
Commit 9902c7b6 authored by Wu, Josh's avatar Wu, Josh Committed by Andreas Bießmann
Browse files

mmc: atmel_mci: fix print incorrect buffer content for debug


Signed-off-by: default avatarJosh Wu <josh.wu@atmel.com>
[fix checkpatch line length warning]
Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
parent 7d82d897
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment