mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
spi: mpc8xxx: Fix function names in strings
Replace the function name with a "%s" format string and the __func__ variable in debug statements (as proposed by checkpatch). Signed-off-by: Mario Six <mario.six@gdsys.cc> Acked-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
parent
6f3ac07ea3
commit
fabe6c4909
1 changed files with 5 additions and 4 deletions
|
@ -81,7 +81,7 @@ int spi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, void *din,
|
||||||
int tm, is_read = 0;
|
int tm, is_read = 0;
|
||||||
uchar char_size = 32;
|
uchar char_size = 32;
|
||||||
|
|
||||||
debug("spi_xfer: slave %u:%u dout %08X din %08X bitlen %u\n",
|
debug("%s: slave %u:%u dout %08X din %08X bitlen %u\n", __func__,
|
||||||
slave->bus, slave->cs, *(uint *)dout, *(uint *)din, bitlen);
|
slave->bus, slave->cs, *(uint *)dout, *(uint *)din, bitlen);
|
||||||
|
|
||||||
if (flags & SPI_XFER_BEGIN)
|
if (flags & SPI_XFER_BEGIN)
|
||||||
|
@ -127,7 +127,7 @@ int spi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, void *din,
|
||||||
/* Write the data out */
|
/* Write the data out */
|
||||||
spi->tx = tmpdout;
|
spi->tx = tmpdout;
|
||||||
|
|
||||||
debug("*** spi_xfer: ... %08x written\n", tmpdout);
|
debug("*** %s: ... %08x written\n", __func__, tmpdout);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wait for SPI transmit to get out
|
* Wait for SPI transmit to get out
|
||||||
|
@ -157,9 +157,10 @@ int spi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, void *din,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (tm >= SPI_TIMEOUT)
|
if (tm >= SPI_TIMEOUT)
|
||||||
puts("*** spi_xfer: Time out during SPI transfer");
|
debug("*** %s: Time out during SPI transfer\n",
|
||||||
|
__func__);
|
||||||
|
|
||||||
debug("*** spi_xfer: transfer ended. Value=%08x\n", tmpdin);
|
debug("*** %s: transfer ended. Value=%08x\n", __func__, tmpdin);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & SPI_XFER_END)
|
if (flags & SPI_XFER_END)
|
||||||
|
|
Loading…
Reference in a new issue