mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
drivers/audio/es8388: set proper format specifier macro for logging
Use PRIu32 instead of %d/%u for uint32_t to avoid build warnings on different architectures. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
This commit is contained in:
parent
fb853be004
commit
fdb8e85525
1 changed files with 2 additions and 2 deletions
|
|
@ -530,7 +530,7 @@ static void es8388_setmclkfrequency(FAR struct es8388_dev_s *priv)
|
|||
|
||||
if (priv->mclk)
|
||||
{
|
||||
audinfo("MCLK Freq: %u\n", priv->mclk);
|
||||
audinfo("MCLK Freq: %" PRIu32"\n", priv->mclk);
|
||||
|
||||
int ret = I2S_SETMCLKFREQUENCY(priv->i2s, priv->mclk);
|
||||
|
||||
|
|
@ -748,7 +748,7 @@ static void es8388_setsamplerate(FAR struct es8388_dev_s *priv)
|
|||
es8388_writereg(priv, ES8388_DACCONTROL2, ES8388_DACFSRATIO(regval));
|
||||
}
|
||||
|
||||
audinfo("Sample rate set to %d\n", priv->samprate);
|
||||
audinfo("Sample rate set to %" PRIu32 "\n", priv->samprate);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue