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 2022/11/13 14:35:31 UTC
[incubator-nuttx] 07/18: Fix Error: chip/rp2040_cyw43439.c:844:46: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
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 c6873ff5a26cbf2b3d22c5bb242ab5aa02a6fb3c
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 13 11:01:27 2022 +0800
Fix Error: chip/rp2040_cyw43439.c:844:46: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/arm/src/rp2040/rp2040_cyw43439.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/rp2040/rp2040_cyw43439.c b/arch/arm/src/rp2040/rp2040_cyw43439.c
index 45a7348c46..21d9442f41 100644
--- a/arch/arm/src/rp2040/rp2040_cyw43439.c
+++ b/arch/arm/src/rp2040/rp2040_cyw43439.c
@@ -841,9 +841,9 @@ gspi_dev_t *rp2040_cyw_setup(uint8_t gpio_on,
return NULL;
}
- wlinfo("setup complete. gspi = 0x%08lX\n", (uint32_t) gspi);
+ wlinfo("setup complete. gspi = 0x%p\n", gspi);
- return (void *)gspi;
+ return gspi;
}
/****************************************************************************