diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index 4928454d4..9c6db09d4 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -320,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=%dms", duration_ms); + BLE_HS_LOG(INFO, "duration=%dms", (int)duration_ms); } } #endif