Skip to content

Commit

Permalink
Address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson committed Feb 15, 2024
1 parent 819622a commit 06ec6da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/CommandHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ CHIP_ERROR TestOnlyExtractCommandPathFromNextInvokeRequest(TLV::TLVReader & invo
return commandPath.GetConcreteCommandPath(concretePath);
}

const char * GetFaultInjectionTypeStr(CommandHandler::NlFaultInjectionType faultType)
[[maybe_unused]] const char * GetFaultInjectionTypeStr(CommandHandler::NlFaultInjectionType faultType)
{
switch (faultType)
{
Expand Down Expand Up @@ -955,9 +955,8 @@ void CommandHandler::TestOnlyInvokeCommandRequestWithFaultsInjected(Messaging::E
VerifyOrDieWithMsg(ec != nullptr, DataManagement, "TH Failure: Incoming exchange context should not be null");
VerifyOrDieWithMsg(mState == State::Idle, DataManagement, "TH Failure: state should be Idle, issue with TH");

[[maybe_unused]] const char * faultMsg = GetFaultInjectionTypeStr(faultType);
ChipLogProgress(DataManagement, "Response to InvokeRequestMessage overridden by fault injection");
ChipLogProgress(DataManagement, " Injecting the following response:%s", faultMsg);
ChipLogProgress(DataManagement, " Injecting the following response:%s", GetFaultInjectionTypeStr(faultType));

mResponseSender.SetExchangeContext(ec);
Handle workHandle(this);
Expand Down

0 comments on commit 06ec6da

Please sign in to comment.