summaryrefslogtreecommitdiffstats
path: root/commands/spi.c
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-11-26 13:51:39 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-26 11:14:40 +0100
commitf23198905c4e943a019acc0a7210d4e586650425 (patch)
tree16ae9b4663ddd3b48d6a62560a475dde79c773c7 /commands/spi.c
parent6a20c24644261c65cb9ca93313b6f51bafc87973 (diff)
downloadbarebox-f23198905c4e943a019acc0a7210d4e586650425.tar.gz
barebox-f23198905c4e943a019acc0a7210d4e586650425.tar.xz
mem: add the swab (swap bytes) option to memory_display()
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/spi.c')
-rw-r--r--commands/spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/spi.c b/commands/spi.c
index 899bf62608..2f6b430baa 100644
--- a/commands/spi.c
+++ b/commands/spi.c
@@ -101,12 +101,12 @@ static int do_spi(int argc, char *argv[])
printf("\n");
printf("wrote %i bytes\n", count);
- memory_display(tx_buf, 0, count, byte_per_word);
+ memory_display(tx_buf, 0, count, byte_per_word, 0);
printf("read %i bytes\n", read);
}
- memory_display(rx_buf, 0, read, byte_per_word);
+ memory_display(rx_buf, 0, read, byte_per_word, 0);
out:
free(rx_buf);