mirror of
https://github.com/apache/nuttx.git
synced 2026-08-27 12:20:46 +00:00
lcd/lcddrv: Fix warnings
- Log received param's value. - uint32_t should be %lu in printf. Signed-off-by: Jiri Vlasak <jvlasak@elektroline.cz>
This commit is contained in:
parent
150e52769b
commit
c8ab1e3919
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue