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 06:31:53 UTC
[incubator-nuttx] 10/28:
boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c: Fix syslog
formats
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 b6217b23b6ff0551040b9b16576d356a2832a010
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Nov 24 09:00:35 2020 +0900
boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c: Fix syslog formats
---
boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c
index 030fc5e..f56949b 100644
--- a/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c
+++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c
@@ -48,6 +48,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
+#include <inttypes.h>
#include <stdbool.h>
#include <errno.h>
#include <debug.h>
@@ -1074,7 +1075,7 @@ static int stm32_ili93414ws_sendgram(FAR struct ili9341_lcd_s *lcd,
{
FAR struct ili93414ws_lcd_s *priv = (FAR struct ili93414ws_lcd_s *)lcd;
- lcdinfo("wd=%p, nwords=%d\n", wd, nwords);
+ lcdinfo("wd=%p, nwords=%" PRId32 "\n", wd, nwords);
/* Set to 16-bit mode transfer mode, spi device is in disabled state */
@@ -1109,7 +1110,7 @@ static int stm32_ili93414ws_recvparam(FAR struct ili9341_lcd_s *lcd,
stm32_ili93414ws_set8bitmode(priv);
#endif
- lcdinfo("param=%04x\n", param);
+ lcdinfo("param=%p\n", param);
return stm32_ili93414ws_recvblock(priv, (uint16_t *)param, 1);
}
@@ -1134,7 +1135,7 @@ static int stm32_ili93414ws_recvgram(FAR struct ili9341_lcd_s *lcd,
{
FAR struct ili93414ws_lcd_s *priv = (FAR struct ili93414ws_lcd_s *)lcd;
- lcdinfo("wd=%p, nwords=%d\n", wd, nwords);
+ lcdinfo("wd=%p, nwords=%" PRId32 "\n", wd, nwords);
/* Set to 16-bit mode in disabled state */