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/27 11:19:48 UTC

[incubator-nuttx] 41/48: drivers/lcd/ft80x_spi.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 e2ec8e974cc96a0320c5e274b98f318153f01115
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 27 17:25:13 2020 +0900

    drivers/lcd/ft80x_spi.c: Fix a syslog format
---
 drivers/lcd/ft80x_spi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/lcd/ft80x_spi.c b/drivers/lcd/ft80x_spi.c
index 04f6956..f6c5988 100644
--- a/drivers/lcd/ft80x_spi.c
+++ b/drivers/lcd/ft80x_spi.c
@@ -39,6 +39,7 @@
 
 #include <nuttx/config.h>
 
+#include <inttypes.h>
 #include <unistd.h>
 #include <errno.h>
 #include <debug.h>
@@ -64,7 +65,8 @@
 
 static void ft80x_select(FAR struct ft80x_dev_s *priv)
 {
-  lcdinfo("Mode: %d Bits: 8 Frequency: %d\n", SPIDEV_MODE0, priv->frequency);
+  lcdinfo("Mode: %d Bits: 8 Frequency: %" PRId32 "\n",
+          SPIDEV_MODE0, priv->frequency);
 
   DEBUGASSERT(priv != NULL);