diff --git a/arch/arm/src/sama5/sam_adc.c b/arch/arm/src/sama5/sam_adc.c index 965377194f6..8ad945879ce 100644 --- a/arch/arm/src/sama5/sam_adc.c +++ b/arch/arm/src/sama5/sam_adc.c @@ -1326,7 +1326,7 @@ static int sam_adc_settimer(struct sam_adc_s *priv, uint32_t frequency, priv->tc = sam_tc_allocate(channel, mode); 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); return -EINVAL; } diff --git a/arch/arm/src/samv7/sam_afec.c b/arch/arm/src/samv7/sam_afec.c index 62aa1ea86f1..c18ba5cfeae 100644 --- a/arch/arm/src/samv7/sam_afec.c +++ b/arch/arm/src/samv7/sam_afec.c @@ -542,7 +542,7 @@ static int sam_afec_settimer(struct samv7_dev_s *priv, uint32_t frequency, priv->tc = sam_tc_allocate(channel, mode); 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); return -EINVAL; } diff --git a/arch/arm/src/samv7/sam_dac.c b/arch/arm/src/samv7/sam_dac.c index 73dfdc3a4cd..f67d57a6bb9 100644 --- a/arch/arm/src/samv7/sam_dac.c +++ b/arch/arm/src/samv7/sam_dac.c @@ -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); 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); return -EINVAL; }