From 7eacf123ecff89cc83312dd963595bb8e4451f5b Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 4 Dec 2020 14:15:24 +0900 Subject: [PATCH] arch/arm/src/samd5e5/sam_tc.c: Fix syslog formats --- arch/arm/src/samd5e5/sam_tc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/samd5e5/sam_tc.c b/arch/arm/src/samd5e5/sam_tc.c index bbd0edcb638..24392acfd04 100644 --- a/arch/arm/src/samd5e5/sam_tc.c +++ b/arch/arm/src/samd5e5/sam_tc.c @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -790,7 +791,7 @@ void sam_tc_start(TC_HANDLE handle) struct sam_tc_dev_s *priv = (struct sam_tc_dev_s *)handle; uint32_t regval; - tmrinfo("Starting TC%d inuse=%d COUNT=%d\n", + tmrinfo("Starting TC%d inuse=%d COUNT=%" PRId32 "\n", priv->attr->tc, priv->inuse, sam_tc_getcounter(priv)); DEBUGASSERT(priv && priv->inuse); @@ -1079,7 +1080,7 @@ int sam_tc_divisor(struct sam_tc_dev_s *tc, uint32_t frequency, uint32_t ftcin = tc->attr->srcfreq; int ndx = 0; - tmrinfo("frequency=%d\n", frequency); + tmrinfo("frequency=%" PRId32 "\n", frequency); /* Satisfy lower bound. That is, the value of the divider such that: *