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


##########
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:
   All is consistent. `uint32_t`/`int32_t` should be printed with `PRId/u/x32` 
macro while `long`/`unsigned long` should use `ld/u/x` and `int`/`unsigned int` 
with `d/u/x`



-- 
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