diff options
author | Martin Sperl <kernel@martin.sperl.org> | 2015-12-13 04:42:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-13 15:10:14 -0500 |
commit | d58b9fda129d7f75358a36b71ec5cc685b4f993e (patch) | |
tree | 360b185118781b6abce57c264ca5bfb824d43f6d | |
parent | 97896195b3f7a6bcbfd52fd920cab5a3df2c5445 (diff) |
spi: loopback: fix printk format issues with size_t
Fixes the reported printk format issues reported by kbuild-test-robot.
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-loopback-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c index db207362e831..4481ac766029 100644 --- a/drivers/spi/spi-loopback-test.c +++ b/drivers/spi/spi-loopback-test.c | |||
@@ -345,7 +345,7 @@ static void spi_test_print_hex_dump(char *pre, const void *ptr, size_t len) | |||
345 | DUMP_PREFIX_OFFSET, 16, 1, | 345 | DUMP_PREFIX_OFFSET, 16, 1, |
346 | ptr, 512, 0); | 346 | ptr, 512, 0); |
347 | /* print tail */ | 347 | /* print tail */ |
348 | pr_info("%s truncated - continuing at offset %04x\n", | 348 | pr_info("%s truncated - continuing at offset %04zx\n", |
349 | pre, len - 512); | 349 | pre, len - 512); |
350 | print_hex_dump(KERN_INFO, pre, | 350 | print_hex_dump(KERN_INFO, pre, |
351 | DUMP_PREFIX_OFFSET, 16, 1, | 351 | DUMP_PREFIX_OFFSET, 16, 1, |
@@ -525,7 +525,7 @@ static int spi_test_check_loopback_result(struct spi_device *spi, | |||
525 | 525 | ||
526 | mismatch_error: | 526 | mismatch_error: |
527 | dev_err(&spi->dev, | 527 | dev_err(&spi->dev, |
528 | "loopback strangeness - transfer missmatch on byte %04x - expected 0x%02x, but got 0x%02x\n", | 528 | "loopback strangeness - transfer missmatch on byte %04zx - expected 0x%02x, but got 0x%02x\n", |
529 | i, txb, rxb); | 529 | i, txb, rxb); |
530 | 530 | ||
531 | return -EINVAL; | 531 | return -EINVAL; |
@@ -777,7 +777,7 @@ static int spi_test_run_iter(struct spi_device *spi, | |||
777 | dev_info(&spi->dev, "Running test %s\n", test.description); | 777 | dev_info(&spi->dev, "Running test %s\n", test.description); |
778 | } else { | 778 | } else { |
779 | dev_info(&spi->dev, | 779 | dev_info(&spi->dev, |
780 | " with iteration values: len = %i, tx_off = %i, rx_off = %i\n", | 780 | " with iteration values: len = %zu, tx_off = %zu, rx_off = %zu\n", |
781 | len, tx_off, rx_off); | 781 | len, tx_off, rx_off); |
782 | } | 782 | } |
783 | 783 | ||