You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2022/11/22 03:38:47 UTC

[incubator-nuttx] 01/02: Fix Error: stm32_wm8994.c:198:54: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')

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

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

commit 88649d03ba9dd7524aa219b8dff0eb3d84a028ae
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Nov 21 03:19:26 2022 +0800

    Fix Error: stm32_wm8994.c:198:54: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 boards/arm/stm32f7/stm32f746g-disco/src/stm32_wm8994.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_wm8994.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_wm8994.c
index 2cf5b1f944..6518ab90ea 100644
--- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_wm8994.c
+++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_wm8994.c
@@ -195,7 +195,7 @@ static uint32_t stm32_wm8994_sampleratecb(struct i2s_dev_s *dev,
         }
     }
 
-  audinfo("i2s PLL configured for samplerate %lu\n", rate);
+  audinfo("i2s PLL configured for samplerate %" PRIu32 "\n", rate);
   return frequency;
 }