diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2012-05-14 13:52:32 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-05-26 00:37:15 +0200 |
commit | 8ea5a34833dd8acf21fd9756b4bcbb37333a42b9 (patch) | |
tree | caa60668b3e76a4b72d09b6b6d987e4db416c9e8 /src/drivers/spi/sst.c | |
parent | 872e74dda256e0a81644b8e7f06110e0e1652ceb (diff) | |
download | coreboot-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/sst.c')
-rw-r--r-- | src/drivers/spi/sst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c index c5bec12b66..8245f726a7 100644 --- a/src/drivers/spi/sst.c +++ b/src/drivers/spi/sst.c @@ -195,7 +195,7 @@ sst_write(struct spi_flash *flash, u32 offset, size_t len, const void *buf) done: printk(BIOS_INFO, "SF: SST: program %s %zu bytes @ 0x%lx\n", - ret ? "failure" : "success", len, offset - actual); + ret ? "failure" : "success", len, (unsigned long)offset - actual); spi_release_bus(flash->spi); return ret; |