提交 84bc72d9 编写于 作者: M Mike Frysinger 提交者: Wolfgang Denk

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: NMike Frysinger <vapier@gentoo.org>
上级 5b3375ac
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册