Skip to content

Commit

Permalink
Zap use chip::ErrorStr into the BasicFilter template of CHIPClientCal…
Browse files Browse the repository at this point in the history
…lbacks.h (#8213)

* Use %s for logging the error instead of %d into CHIPClientCallbacks.zapt

* Update gen/ folders
  • Loading branch information
vivien-apple authored Jul 8, 2021
1 parent e55ad30 commit 046f46a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/pump-app/pump-common/gen/CHIPClientCallbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void BasicAttributeFilter(chip::TLV::TLVReader * data, chip::Callback::Cancelabl
}
else
{
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %d", err);
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %s", chip::ErrorStr(err));
chip::Callback::Callback<DefaultFailureCallback> * cb =
chip::Callback::Callback<DefaultFailureCallback>::FromCancelable(onFailure);
cb->mCall(cb->mContext, EMBER_ZCL_STATUS_INVALID_VALUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void BasicAttributeFilter(chip::TLV::TLVReader * data, chip::Callback::Cancelabl
}
else
{
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %d", err);
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %s", chip::ErrorStr(err));
chip::Callback::Callback<DefaultFailureCallback> * cb =
chip::Callback::Callback<DefaultFailureCallback>::FromCancelable(onFailure);
cb->mCall(cb->mContext, EMBER_ZCL_STATUS_INVALID_VALUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void BasicAttributeFilter(chip::TLV::TLVReader * data, chip::Callback::Cancelabl
}
else
{
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %d", err);
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %s", chip::ErrorStr(err));
chip::Callback::Callback<DefaultFailureCallback> * cb =
chip::Callback::Callback<DefaultFailureCallback>::FromCancelable(onFailure);
cb->mCall(cb->mContext, EMBER_ZCL_STATUS_INVALID_VALUE);
Expand Down
2 changes: 1 addition & 1 deletion src/controller/data_model/gen/CHIPClientCallbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void BasicAttributeFilter(chip::TLV::TLVReader * data, chip::Callback::Cancelabl
}
else
{
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %d", err);
ChipLogError(Zcl, "Failed to get value from TLV data for attribute reading response: %s", chip::ErrorStr(err));
chip::Callback::Callback<DefaultFailureCallback> * cb =
chip::Callback::Callback<DefaultFailureCallback>::FromCancelable(onFailure);
cb->mCall(cb->mContext, EMBER_ZCL_STATUS_INVALID_VALUE);
Expand Down

0 comments on commit 046f46a

Please sign in to comment.