You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/09/18 15:18:18 UTC

[incubator-nuttx] 05/05: drivers/mmcsd/mmcsd_spi: fix warning with finfo print

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

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

commit f75535607e1348c519784977d9d099f950faf201
Author: Janne Rosberg <ja...@offcode.fi>
AuthorDate: Sat Sep 18 16:41:06 2021 +0300

    drivers/mmcsd/mmcsd_spi: fix warning with finfo print
---
 drivers/mmcsd/mmcsd_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmcsd/mmcsd_spi.c b/drivers/mmcsd/mmcsd_spi.c
index 2b9e0cd..666cd15 100644
--- a/drivers/mmcsd/mmcsd_spi.c
+++ b/drivers/mmcsd/mmcsd_spi.c
@@ -1297,7 +1297,7 @@ static ssize_t mmcsd_read(FAR struct inode *inode, unsigned char *buffer,
   SPI_SEND(spi, 0xff);
   mmcsd_semgive(slot);
 
-  finfo("Read %d bytes:\n", nbytes);
+  finfo("Read %zu bytes:\n", nbytes);
   mmcsd_dumpbuffer("Read buffer", buffer, nbytes);
   return nsectors;