mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Fix Error: chip/sam_afec.c:546:22: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -1326,7 +1326,7 @@ static int sam_adc_settimer(struct sam_adc_s *priv, uint32_t frequency,
|
|||||||
priv->tc = sam_tc_allocate(channel, mode);
|
priv->tc = sam_tc_allocate(channel, mode);
|
||||||
if (!priv->tc)
|
if (!priv->tc)
|
||||||
{
|
{
|
||||||
aerr("ERROR: Failed to allocate channel %d mode %08x\n",
|
aerr("ERROR: Failed to allocate channel %d mode %08" PRIx32 "\n",
|
||||||
channel, mode);
|
channel, mode);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -542,7 +542,7 @@ static int sam_afec_settimer(struct samv7_dev_s *priv, uint32_t frequency,
|
|||||||
priv->tc = sam_tc_allocate(channel, mode);
|
priv->tc = sam_tc_allocate(channel, mode);
|
||||||
if (!priv->tc)
|
if (!priv->tc)
|
||||||
{
|
{
|
||||||
aerr("ERROR: Failed to allocate channel %d mode %08lx\n",
|
aerr("ERROR: Failed to allocate channel %d mode %08" PRIx32 "\n",
|
||||||
channel, mode);
|
channel, mode);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ static int dac_timer_init(struct sam_dac_s *priv, uint32_t freq_required,
|
|||||||
priv->tc = sam_tc_allocate(channel, mode);
|
priv->tc = sam_tc_allocate(channel, mode);
|
||||||
if (!priv->tc)
|
if (!priv->tc)
|
||||||
{
|
{
|
||||||
aerr("ERROR: Failed to allocate channel %d mode %08x\n",
|
aerr("ERROR: Failed to allocate channel %d mode %08" PRIx32 "\n",
|
||||||
channel, mode);
|
channel, mode);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user