pkarashchenko commented on code in PR #9102:
URL: https://github.com/apache/nuttx/pull/9102#discussion_r1177430653
##########
drivers/spi/spi_bitbang.c:
##########
@@ -192,7 +192,7 @@ static void spi_select(FAR struct spi_dev_s *dev, uint32_t
devid,
{
FAR struct spi_bitbang_s *priv = (FAR struct spi_bitbang_s *)dev;
- spiinfo("devid=%d selected=%d\n", devid, selected);
+ spiinfo("devid=%ld selected=%d\n", devid, selected);
Review Comment:
```suggestion
spiinfo("devid=%" PRIu32 " selected=%d\n", devid, selected);
```
##########
drivers/spi/spi_bitbang.c:
##########
@@ -220,7 +220,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev,
DEBUGASSERT(priv && priv->low->setfrequency);
actual = priv->low->setfrequency(priv, frequency);
- spiinfo("frequency=%d holdtime=%d actual=%d\n",
+ spiinfo("frequency=%ld holdtime=%ld actual=%ld\n",
Review Comment:
```suggestion
spiinfo("frequency=%" PRIu32 " holdtime=%" PRIu32 " actual=%" PRIu32 "\n",
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]