diff --git a/components/bt/controller/esp32c6/bt.c b/components/bt/controller/esp32c6/bt.c index 354c5a9939..868a9ea486 100644 --- a/components/bt/controller/esp32c6/bt.c +++ b/components/bt/controller/esp32c6/bt.c @@ -387,14 +387,14 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, b { if (!end) { for (int i = 0; i < len; i++) { - ets_printf("%02x,", addr[i]); + esp_rom_printf("%02x,", addr[i]); } } else { for (int i = 0; i < len; i++) { - ets_printf("%02x,", addr[i]); + esp_rom_printf("%02x,", addr[i]); } - ets_printf("\n"); + esp_rom_printf("\n"); } } #endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED diff --git a/components/bt/controller/esp32h2/bt.c b/components/bt/controller/esp32h2/bt.c index 9df64bf268..5acef98fa5 100644 --- a/components/bt/controller/esp32h2/bt.c +++ b/components/bt/controller/esp32h2/bt.c @@ -379,14 +379,14 @@ static void esp_bt_controller_log_interface(uint32_t len, const uint8_t *addr, b { if (!end) { for (int i = 0; i < len; i++) { - ets_printf("%02x,", addr[i]); + esp_rom_printf("%02x,", addr[i]); } } else { for (int i = 0; i < len; i++) { - ets_printf("%02x,", addr[i]); + esp_rom_printf("%02x,", addr[i]); } - ets_printf("\n"); + esp_rom_printf("\n"); } } #endif // CONFIG_BT_LE_CONTROLLER_LOG_ENABLED