You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/25 13:11:39 UTC

[incubator-nuttx] 02/35: arch/arm/src/efm32/efm32_timer.c: Fix a syslog format

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit e7b185f11cf464065090281d45d6d462c8782bc3
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 14:33:51 2020 +0900

    arch/arm/src/efm32/efm32_timer.c: Fix a syslog format
---
 arch/arm/src/efm32/efm32_timer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/efm32/efm32_timer.c b/arch/arm/src/efm32/efm32_timer.c
index 1bdf8cf..d33f7f0 100644
--- a/arch/arm/src/efm32/efm32_timer.c
+++ b/arch/arm/src/efm32/efm32_timer.c
@@ -229,8 +229,8 @@ int efm32_timer_set_freq(uintptr_t base, uint32_t clk_freq, uint32_t freq)
 
   reload = (clk_freq / prescaler / freq);
 
-  tmrinfo("Source: %4xHz Div: %4x Reload: %4x \n", clk_freq, prescaler,
-          reload);
+  tmrinfo("Source: %4" PRIx32 "Hz Div: %4x Reload: %4x \n",
+          clk_freq, prescaler, reload);
 
   putreg32(reload, base + EFM32_TIMER_TOP_OFFSET);