diff options
author | Paul Menzel <paulepanter@users.sourceforge.net> | 2018-02-15 07:59:56 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-02-16 17:10:37 +0000 |
commit | e46ef4c0bae198e33a9bc212c50f3b0c6b74f29b (patch) | |
tree | 779e3b8153072b2cb0c02dbd36f1e58a475fa601 /src/soc | |
parent | 126614b87b43750f4f07ccdb831f652af6acc6ce (diff) |
soc/amd/stoneyridge/spi: Use correct conversion specifier
Use the correct conversion specifier `z` for `size_t` to fix the error
below.
```
error: format '%lx' expects argument of type 'long unsigned int', but \
argument 4 has type 'size_t {aka unsigned int}' [-Werror=format=]
```
Found-by: gcc (Debian 7.3.0-3) 7.3.0
Change-Id: I05d3b6c9eec0ebf77cdb9e9928037e837f87ea03
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://review.coreboot.org/23770
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/stoneyridge/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/stoneyridge/spi.c b/src/soc/amd/stoneyridge/spi.c index 0e2afe3128..c94f5e7f69 100644 --- a/src/soc/amd/stoneyridge/spi.c +++ b/src/soc/amd/stoneyridge/spi.c @@ -127,7 +127,7 @@ static int spi_ctrlr_xfer(const struct spi_slave *slave, const void *dout, const uint8_t *bufout = dout; if (SPI_DEBUG_DRIVER) - printk(BIOS_DEBUG, "%s(%lx, %lx)\n", __func__, bytesout, + printk(BIOS_DEBUG, "%s(%zx, %zx)\n", __func__, bytesout, bytesin); /* First byte is cmd which cannot be sent through FIFO */ |