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/nuttx.git

commit c8ab1e391917c69b29ff39ea4ce17838dfc5190d
Author: Jiri Vlasak <[email protected]>
AuthorDate: Mon Nov 24 10:52:58 2025 +0100

    lcd/lcddrv: Fix warnings
    
    - Log received param's value.
    - uint32_t should be %lu in printf.
    
    Signed-off-by: Jiri Vlasak <[email protected]>
---
 drivers/lcd/lcddrv_spiif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/lcd/lcddrv_spiif.c b/drivers/lcd/lcddrv_spiif.c
index 244e8af46ee..0ad4fc0b02d 100644
--- a/drivers/lcd/lcddrv_spiif.c
+++ b/drivers/lcd/lcddrv_spiif.c
@@ -175,8 +175,8 @@ static int lcddrv_spiif_recv(FAR struct lcddrv_lcd_s *lcd,
 {
   FAR struct lcddrv_spiif_lcd_s *priv = (FAR struct lcddrv_spiif_lcd_s *)lcd;
 
-  lcdinfo("param=%04x\n", param);
   SPI_RECVBLOCK(priv->spi, param, 1);
+  lcdinfo("param=%04x\n", *param);
   return OK;
 }
 
@@ -254,7 +254,7 @@ static int lcddrv_spiif_recvmulti(FAR struct lcddrv_lcd_s 
*lcd,
 {
   FAR struct lcddrv_spiif_lcd_s *priv = (FAR struct lcddrv_spiif_lcd_s *)lcd;
 
-  lcdinfo("wd=%p, nwords=%d\n", wd, nwords);
+  lcdinfo("wd=%p, nwords=%lu\n", wd, nwords);
   SPI_SETBITS(priv->spi, 16);
   SPI_RECVBLOCK(priv->spi, wd, nwords);
   SPI_SETBITS(priv->spi, 8);

Reply via email to