This is an automated email from the ASF dual-hosted git repository. jerpelea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new dcb74eba2e drivers/audio/es8311: set proper format specifier for logging dcb74eba2e is described below commit dcb74eba2ec1d9cea4d3e1490cb4d5a3b7e99e93 Author: Filipe Cavalcanti <filipe.cavalca...@espressif.com> AuthorDate: Thu Feb 27 09:10:01 2025 -0300 drivers/audio/es8311: set proper format specifier for logging Use PRIu32 instead of %d/%u to we avoid build warning on different architectures. Signed-off-by: Filipe Cavalcanti <filipe.cavalca...@espressif.com> --- drivers/audio/es8311.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/audio/es8311.c b/drivers/audio/es8311.c index 4fcff6a420..93f8164feb 100644 --- a/drivers/audio/es8311.c +++ b/drivers/audio/es8311.c @@ -498,12 +498,13 @@ static int es8311_getcoeff(FAR struct es8311_dev_s *priv, if (priv->mclk == es8311_coeff_div[i].mclk && samplerate == es8311_coeff_div[i].rate) { - audinfo("MCLK: %d, samplerate: %d\n", priv->mclk, samplerate); + audinfo("MCLK: %" PRIu32 ", samplerate: %" PRIu32 "\n", + priv->mclk, samplerate); return i; } } - auderr("MCLK = %d and samplerate = %d not supported.\n", + auderr("MCLK = %" PRIu32 " and samplerate = %" PRIu32 " not supported.\n", priv->mclk, samplerate); return -EINVAL; @@ -775,7 +776,7 @@ static int es8311_setsamplerate(FAR struct es8311_dev_s *priv) } else { - audinfo("Sample rate set to: %d.\n", priv->samprate); + audinfo("Sample rate set to: %" PRIu32 ".\n", priv->samprate); return OK; } }