From 4be5d915af0f47855241169a7d583d54da804c62 Mon Sep 17 00:00:00 2001 From: Mihai Tudor Panu Date: Mon, 12 Mar 2018 16:20:08 -0700 Subject: [PATCH] spi.c: fix warning on syslog string format Signed-off-by: Mihai Tudor Panu --- src/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spi/spi.c b/src/spi/spi.c index 2d9486c..62e1940 100644 --- a/src/spi/spi.c +++ b/src/spi/spi.c @@ -261,7 +261,7 @@ mraa_spi_frequency(mraa_spi_context dev, int hz) // seems a bunch of drivers don't have this set to the actual max // so we only complain about it // dev->clock = speed; - syslog(LOG_NOTICE, "spi: Selected speed (%dhz) is higher than the kernel max allowed speed (%shz)", hz, SPI_IOC_RD_MAX_SPEED_HZ); + syslog(LOG_NOTICE, "spi: Selected speed (%d Hz) is higher than the kernel max allowed speed (%lu Hz)", hz, SPI_IOC_RD_MAX_SPEED_HZ); } } return MRAA_SUCCESS;