summaryrefslogtreecommitdiff
path: root/src/drivers/spi/eon.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-05-14 13:52:32 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-05-26 00:37:15 +0200
commit8ea5a34833dd8acf21fd9756b4bcbb37333a42b9 (patch)
treecaa60668b3e76a4b72d09b6b6d987e4db416c9e8 /src/drivers/spi/eon.c
parent872e74dda256e0a81644b8e7f06110e0e1652ceb (diff)
downloadcoreboot-8ea5a34833dd8acf21fd9756b4bcbb37333a42b9.tar.xz
Fix printk types in SPI flash drivers
- use %zu instead of %zd for size_t (%zd is for ssize_t) - use %x instead of %lx for u32 - break some long lines to avoid commit hook trouble Change-Id: Idfad716523dbcd2a595d26317240e972b5253e8b Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1041 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/drivers/spi/eon.c')
-rw-r--r--src/drivers/spi/eon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/spi/eon.c b/src/drivers/spi/eon.c
index 4056953098..b7c0630b3b 100644
--- a/src/drivers/spi/eon.c
+++ b/src/drivers/spi/eon.c
@@ -86,7 +86,7 @@ static int eon_write(struct spi_flash *flash,
cmd[3] = byte_addr;
printk(BIOS_SPEW,
- "PP: 0x%p => cmd = { 0x%02x 0x%02x%02x%02x } chunk_len = %zd\n",
+ "PP: 0x%p => cmd = { 0x%02x 0x%02x%02x%02x } chunk_len = %zu\n",
buf + actual, cmd[0], cmd[1], cmd[2], cmd[3], chunk_len);
ret = spi_flash_cmd(flash->spi, CMD_EN25Q128_WREN, NULL, 0);