This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch releases/13.0
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/13.0 by this push:
new 084400f200e drivers/mmcsd/mmcsd_sdio.c: Fix finfo print modifier
084400f200e is described below
commit 084400f200e313aeb4592be27e42583ea057e81d
Author: Jukka Laitinen <[email protected]>
AuthorDate: Mon Aug 3 09:01:28 2026 +0300
drivers/mmcsd/mmcsd_sdio.c: Fix finfo print modifier
Use PRIx32 to print uint32_t type argument to fix compilation error on
64 bit platforms.
Signed-off-by: Jukka Laitinen <[email protected]>
---
drivers/mmcsd/mmcsd_sdio.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c
index f81412704d4..6c172e5f10f 100644
--- a/drivers/mmcsd/mmcsd_sdio.c
+++ b/drivers/mmcsd/mmcsd_sdio.c
@@ -1024,9 +1024,9 @@ static void mmcsd_decode_cid(FAR struct mmcsd_state_s
*priv, uint32_t cid[4])
decoded.mdt = (cid[3] >> 8) & 0xff;
decoded.crc = (cid[3] >> 1) & 0x7f;
- finfo("mid: %02x cbx: %01x oid: %01x pnm: %s prv: %d psn: %08x mdt: %02x\
- crc: %02x\n", decoded.mid, decoded.cbx, decoded.oid, decoded.pnm,
- decoded.prv, (unsigned long)decoded.psn, decoded.mdt, decoded.crc);
+ finfo("mid: %02x cbx: %01x oid: %01x pnm: %s prv: %d psn: %08" PRIx32
+ " mdt: %02x crc: %02x\n", decoded.mid, decoded.cbx, decoded.oid,
+ decoded.pnm, decoded.prv, decoded.psn, decoded.mdt, decoded.crc);
}
#endif