From e46ef4c0bae198e33a9bc212c50f3b0c6b74f29b Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 15 Feb 2018 07:59:56 +0100 Subject: soc/amd/stoneyridge/spi: Use correct conversion specifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/23770 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Neuschäfer Reviewed-by: Richard Spiegel Reviewed-by: Aaron Durbin --- src/soc/amd/stoneyridge/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3