From c6873ff5a26cbf2b3d22c5bb242ab5aa02a6fb3c Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 13 Nov 2022 11:01:27 +0800 Subject: [PATCH] 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 --- 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; } /****************************************************************************