diff --git a/arch/avr/src/avr/up_spi.c b/arch/avr/src/avr/up_spi.c index 7caa2bcc2f..2c4588572b 100644 --- a/arch/avr/src/avr/up_spi.c +++ b/arch/avr/src/avr/up_spi.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include @@ -250,7 +251,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, actual = priv->actual; } - spiinfo("Frequency %d->%d\n", frequency, actual); + spiinfo("Frequency %" PRId32 "->%" PRId32 "\n", frequency, actual); return actual; }