diff --git a/src/app/StatusResponse.cpp b/src/app/StatusResponse.cpp index 094c411f21c32a..19042ce06762c3 100644 --- a/src/app/StatusResponse.cpp +++ b/src/app/StatusResponse.cpp @@ -55,7 +55,8 @@ CHIP_ERROR StatusResponse::ProcessStatusResponse(System::PacketBufferHandle && a #endif StatusIB status; ReturnErrorOnFailure(response.GetStatus(status.mStatus)); - ChipLogProgress(InteractionModel, "Received status response, status is %u", to_underlying(status.mStatus)); + ChipLogProgress(InteractionModel, "Received status response, status is " ChipLogFormatIMStatus, + ChipLogValueIMStatus(status.mStatus)); ReturnErrorOnFailure(response.ExitContainer()); if (status.mStatus == Protocols::InteractionModel::Status::Success) diff --git a/src/app/clusters/administrator-commissioning-server/administrator-commissioning-server.cpp b/src/app/clusters/administrator-commissioning-server/administrator-commissioning-server.cpp index 2b7a00fda60e38..7ae2421b5d5875 100644 --- a/src/app/clusters/administrator-commissioning-server/administrator-commissioning-server.cpp +++ b/src/app/clusters/administrator-commissioning-server/administrator-commissioning-server.cpp @@ -145,7 +145,8 @@ bool emberAfAdministratorCommissioningClusterOpenCommissioningWindowCallback( { if (globalStatus != InteractionModel::Status::Success) { - ChipLogError(Zcl, "Failed to open commissioning window. Global status %d", to_underlying(globalStatus)); + ChipLogError(Zcl, "Failed to open commissioning window. Global status " ChipLogFormatIMStatus, + ChipLogValueIMStatus(globalStatus)); } commandObj->AddStatus(commandPath, globalStatus); } @@ -191,7 +192,8 @@ bool emberAfAdministratorCommissioningClusterOpenBasicCommissioningWindowCallbac { if (globalStatus != InteractionModel::Status::Success) { - ChipLogError(Zcl, "Failed to open commissioning window. Global status %d", to_underlying(globalStatus)); + ChipLogError(Zcl, "Failed to open commissioning window. Global status " ChipLogFormatIMStatus, + ChipLogValueIMStatus(globalStatus)); } commandObj->AddStatus(commandPath, globalStatus); }