diff --git a/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp b/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp index 453b0172f4..241a9984d7 100644 --- a/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp +++ b/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp @@ -2986,7 +2986,7 @@ bool Gap::apply_peripheral_privacy_connection_policy( } tr_info("Connection %d: disconnecting - reason=%s", event.getConnectionHandle(), - to_string(local_disconnection_reason_t::AUTHENTICATION_FAILURE)); + to_string(local_disconnection_reason_t{local_disconnection_reason_t::AUTHENTICATION_FAILURE})); _pal_gap.disconnect( connection_handle, local_disconnection_reason_t::AUTHENTICATION_FAILURE diff --git a/connectivity/FEATURE_BLE/source/generic/SecurityManagerImpl.cpp b/connectivity/FEATURE_BLE/source/generic/SecurityManagerImpl.cpp index b98b779136..cfde14d0fa 100644 --- a/connectivity/FEATURE_BLE/source/generic/SecurityManagerImpl.cpp +++ b/connectivity/FEATURE_BLE/source/generic/SecurityManagerImpl.cpp @@ -2049,7 +2049,7 @@ void SecurityManager::on_passkey_display( if (eventHandler) { eventHandler->passkeyDisplay(connection, ascii_passkey.value()); } else { - tr_warning("Connection %d - No app handler to display pass key"); + tr_warning("Connection %d - No app handler to display pass key", connection); } } @@ -2061,7 +2061,7 @@ void SecurityManager::on_passkey_request(connection_handle_t connection) if (eventHandler) { eventHandler->passkeyRequest(connection); } else { - tr_warning("Connection %d - No app handler to forward pass key request"); + tr_warning("Connection %d - No app handler to forward pass key request", connection); } }