You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/02/21 18:04:01 UTC
[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #8613: samv7: fix printf warnings in QSPI
pkarashchenko commented on code in PR #8613:
URL: https://github.com/apache/nuttx/pull/8613#discussion_r1113406874
##########
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=%d\n", frequency);
+ spiinfo("frequency=%"PRId32"\n", frequency);
Review Comment:
`PRIu32` would be a better candidate for unsigned types.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org