arch/arm/src/lc823450/lc823450_spi.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-29 16:36:13 +09:00 committed by Xiang Xiao
parent 77c5d8eade
commit 61c26de3fe

View File

@ -25,6 +25,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
@ -191,7 +192,8 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev,
}
}
spiinfo("Frequency %d -> %d\n", frequency, sysclk / (4 * (256 - div)));
spiinfo("Frequency %" PRId32 " -> %ld\n",
frequency, sysclk / (4 * (256 - div)));
actual = sysclk / (4 * (256 - div));
putreg32(div, LC823450_SPI_BRG);