Private
Public Access
2
0

spi.c: fix warning on syslog string format

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2018-03-12 16:20:08 -07:00
parent ea6d771c2b
commit 4be5d915af

View File

@@ -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;