summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-12-11 18:39:08 -0500
committerWolfgang Denk <wd@denx.de>2008-12-16 00:48:18 +0100
commit84bc72d90c505fec3ef4b693995407a0bd4064e5 (patch)
treef64487f123aa31a043eaea00ef2a718262546b6b /drivers
parent5b3375ac8c36c29c87abb132fede0509eb21e5c9 (diff)
downloadu-boot-imx-84bc72d90c505fec3ef4b693995407a0bd4064e5.zip
u-boot-imx-84bc72d90c505fec3ef4b693995407a0bd4064e5.tar.gz
u-boot-imx-84bc72d90c505fec3ef4b693995407a0bd4064e5.tar.bz2
spi/stmicro: fix debug() display of cmd
The stmicro_wait_ready() func tries to show the actual opcode that was sent to the device, but instead it displays the array pointer. Fix it to pull out the opcode from the start of the array. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/spi/stmicro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index b8b835a..86324e4 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -137,7 +137,7 @@ static int stmicro_wait_ready(struct spi_flash *flash, unsigned long timeout)
ret = spi_xfer(spi, 32, &cmd[0], NULL, SPI_XFER_BEGIN);
if (ret) {
- debug("SF: Failed to send command %02x: %d\n", cmd, ret);
+ debug("SF: Failed to send command %02x: %d\n", cmd[0], ret);
return ret;
}