pkarashchenko commented on code in PR #7761:
URL: https://github.com/apache/nuttx/pull/7761#discussion_r1038370808


##########
arch/arm/src/sama5/sam_tc.c:
##########
@@ -1451,7 +1452,8 @@ int sam_tc_divisor(uint32_t frequency, uint32_t *div, 
uint32_t *tcclks)
 
   if (tcclks)
     {
-      tmrinfo("return tcclks=%08lx\n", (unsigned long)TC_CMR_TCCLKS(ndx));
+      tmrinfo("return tcclks=%08" PRIx32 "\n",

Review Comment:
   This place does not need PRIx32 macro since argument is casted to unsigned 
long



##########
arch/arm/src/sama5/sam_adc.c:
##########
@@ -1890,7 +1889,7 @@ static void sam_adc_gain(struct sam_adc_s *priv)
   /* Set GAIN0 only.  GAIN0 will be used for all channels. */
 
   sam_adc_putreg(priv, SAM_ADC_CGR, ADC_CGR_GAIN0(CONFIG_SAMA5_ADC_GAIN));
-#endif /* CONFIG_SAMA5_ADC_ANARCH */
+   #endif /* CONFIG_SAMA5_ADC_ANARCH */

Review Comment:
   ```suggestion
   #  endif /* CONFIG_SAMA5_ADC_ANARCH */
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to