diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2012-11-26 13:51:39 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-11-26 11:14:40 +0100 |
commit | f23198905c4e943a019acc0a7210d4e586650425 (patch) | |
tree | 16ae9b4663ddd3b48d6a62560a475dde79c773c7 /commands/spi.c | |
parent | 6a20c24644261c65cb9ca93313b6f51bafc87973 (diff) | |
download | barebox-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.c | 4 |
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); |