diff --git a/arch/risc-v/src/common/espressif/esp_wdt.c b/arch/risc-v/src/common/espressif/esp_wdt.c index f25b18edb58..4d68987ba48 100644 --- a/arch/risc-v/src/common/espressif/esp_wdt.c +++ b/arch/risc-v/src/common/espressif/esp_wdt.c @@ -428,7 +428,7 @@ static xcpt_t wdt_capture(struct watchdog_lowerhalf_s *lower, xcpt_t handler) DEBUGASSERT(priv != NULL); - wdinfo("Entry: handler=0x%" PRIxPTR "\n", (uintptr_t)handler); + wdinfo("Entry: handler=%p\n", handler); oldhandler = priv->handler; diff --git a/arch/risc-v/src/esp32c3-legacy/esp32c3_i2c.c b/arch/risc-v/src/esp32c3-legacy/esp32c3_i2c.c index 9c098dfd2ad..559fd43a0d0 100644 --- a/arch/risc-v/src/esp32c3-legacy/esp32c3_i2c.c +++ b/arch/risc-v/src/esp32c3-legacy/esp32c3_i2c.c @@ -1476,7 +1476,7 @@ struct i2c_master_s *esp32c3_i2cbus_initialize(int port) nxmutex_unlock(&priv->lock); i2cinfo("Returning previously initialized I2C bus. " - "Handler: %" PRIxPTR "\n", (uintptr_t)priv); + "Handler: %p\n", priv); return (struct i2c_master_s *)priv; } @@ -1525,7 +1525,7 @@ struct i2c_master_s *esp32c3_i2cbus_initialize(int port) esp32c3_i2c_init(priv); nxmutex_unlock(&priv->lock); - i2cinfo("I2C bus initialized! Handler: %" PRIxPTR "\n", (uintptr_t)priv); + i2cinfo("I2C bus initialized! Handler: %p\n", priv); return (struct i2c_master_s *)priv; } diff --git a/arch/risc-v/src/esp32c3-legacy/esp32c3_wdt_lowerhalf.c b/arch/risc-v/src/esp32c3-legacy/esp32c3_wdt_lowerhalf.c index bd22628a17a..e01295a956e 100644 --- a/arch/risc-v/src/esp32c3-legacy/esp32c3_wdt_lowerhalf.c +++ b/arch/risc-v/src/esp32c3-legacy/esp32c3_wdt_lowerhalf.c @@ -530,7 +530,7 @@ static xcpt_t esp32c3_wdt_capture(struct watchdog_lowerhalf_s *lower, DEBUGASSERT(priv); - wdinfo("Entry: handler=0x%" PRIxPTR "\n", (uintptr_t) handler); + wdinfo("Entry: handler=%p\n", handler); /* Get the old handler to return it */ diff --git a/arch/risc-v/src/mpfs/mpfs_i2c.c b/arch/risc-v/src/mpfs/mpfs_i2c.c index cf0ecd418aa..63ffe6006de 100644 --- a/arch/risc-v/src/mpfs/mpfs_i2c.c +++ b/arch/risc-v/src/mpfs/mpfs_i2c.c @@ -1128,7 +1128,7 @@ struct i2c_master_s *mpfs_i2cbus_initialize(int port) nxmutex_unlock(&priv->lock); i2cinfo("Returning previously initialized I2C bus. " - "Handler: %" PRIxPTR "\n", (uintptr_t)priv); + "Handler: %p\n", priv); return (struct i2c_master_s *)priv; } @@ -1154,7 +1154,7 @@ struct i2c_master_s *mpfs_i2cbus_initialize(int port) nxmutex_unlock(&priv->lock); - i2cinfo("I2C bus initialized! Handler: %" PRIxPTR "\n", (uintptr_t)priv); + i2cinfo("I2C bus initialized! Handler: %p\n", priv); return (struct i2c_master_s *)priv; } diff --git a/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c b/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c index 308d92e018d..018baf7f4d4 100644 --- a/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c +++ b/arch/xtensa/src/esp32s2/esp32s2_wdt_lowerhalf.c @@ -588,7 +588,7 @@ static xcpt_t wdt_lh_capture(struct watchdog_lowerhalf_s *lower, DEBUGASSERT(priv); - wdinfo("Entry: handler=0x%" PRIxPTR "\n", (uintptr_t) handler); + wdinfo("Entry: handler=%p\n", handler); /* Get the old handler to return it */ diff --git a/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c b/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c index 38986cb3944..ed9af91f975 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c +++ b/arch/xtensa/src/esp32s3/esp32s3_wdt_lowerhalf.c @@ -590,7 +590,7 @@ static xcpt_t wdt_lh_capture(struct watchdog_lowerhalf_s *lower, DEBUGASSERT(priv); - wdinfo("Entry: handler=0x%" PRIxPTR "\n", (uintptr_t) handler); + wdinfo("Entry: handler=%p\n", handler); /* Get the old handler to return it */ diff --git a/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c b/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c index b0c29804979..d75c3fd7709 100644 --- a/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c +++ b/boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c @@ -1546,7 +1546,7 @@ static int cxd5610_gnss_initialize(struct cxd5610_gnss_dev_s *priv) /* Create thread for receiving from CXD5610 device */ - snprintf(arg1, 16, "0x%" PRIxPTR, (uintptr_t)priv); + snprintf(arg1, 16, "%p", priv); argv[0] = arg1; argv[1] = NULL;