From eab9e688d8d0597cbbe62fdfc6c10696327bc936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 6 Mar 2023 15:51:24 +0100 Subject: [PATCH] samv7: switch from printing numbers as signed to unsigned in QSPI This switches from PRId32 to PRIu32. Those variables have unsigned type and thus we should print them as such. --- arch/arm/src/samv7/sam_qspi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/samv7/sam_qspi.c b/arch/arm/src/samv7/sam_qspi.c index d1478a7336..ec673b45ae 100644 --- a/arch/arm/src/samv7/sam_qspi.c +++ b/arch/arm/src/samv7/sam_qspi.c @@ -1089,7 +1089,7 @@ static uint32_t qspi_setfrequency(struct qspi_dev_s *dev, uint32_t frequency) #endif uint32_t regval; - spiinfo("frequency=%"PRId32"\n", frequency); + spiinfo("frequency=%"PRIu32"\n", frequency); DEBUGASSERT(priv); /* Check if the requested frequency is the same as the frequency @@ -1179,14 +1179,14 @@ static uint32_t qspi_setfrequency(struct qspi_dev_s *dev, uint32_t frequency) /* Calculate the new actual frequency */ actual = SAM_QSPI_CLOCK / scbr; - spiinfo("SCBR=%"PRId32" actual=%"PRId32"\n", scbr, actual); + spiinfo("SCBR=%"PRIu32" actual=%"PRIu32"\n", scbr, actual); /* Save the frequency setting */ priv->frequency = frequency; priv->actual = actual; - spiinfo("Frequency %"PRId32"->%"PRId32"\n", frequency, actual); + spiinfo("Frequency %"PRIu32"->%"PRIu32"\n", frequency, actual); return actual; } @@ -1548,7 +1548,7 @@ static int qspi_memory(struct qspi_dev_s *dev, (unsigned long)meminfo->addr, meminfo->addrlen); spiinfo(" %s Data:\n", QSPIMEM_ISWRITE(meminfo->flags) ? "Write" : "Read"); - spiinfo(" buffer/length: %p/%"PRId32"\n", + spiinfo(" buffer/length: %p/%"PRIu32"\n", meminfo->buffer, meminfo->buflen); #ifdef CONFIG_SAMV7_QSPI_DMA