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.cavalcanti@espressif.com>
This commit is contained in:
Filipe Cavalcanti 2025-02-27 09:10:01 -03:00 committed by Alin Jerpelea
parent b698cc1338
commit dcb74eba2e

View file

@ -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;
}
}