mmc: atmel_mci: fix print incorrect buffer content for debug

Signed-off-by: Josh Wu <josh.wu@atmel.com>
[fix checkpatch line length warning]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
This commit is contained in:
Wu, Josh 2014-05-07 17:06:08 +08:00 committed by Andreas Bießmann
parent 7d82d89772
commit 9902c7b6f1

View File

@ -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