diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index c20bb39ef..9c6db09d4 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -20,7 +20,6 @@ #include #include #include -#include #include "nimble/nimble_opt.h" #include "host/ble_gap.h" #include "host/ble_hs_adv.h" @@ -321,7 +320,7 @@ ble_gap_log_duration(int32_t duration_ms) if (duration_ms == BLE_HS_FOREVER) { BLE_HS_LOG(INFO, "duration=forever"); } else { - BLE_HS_LOG(INFO, "duration=%" PRId32 "ms", duration_ms); + BLE_HS_LOG(INFO, "duration=%dms", (int)duration_ms); } } #endif