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 (project-chip#8213)

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

* Update gen/ folders
  • Loading branch information
vivien-apple authored and Nikita committed Sep 23, 2021
1 parent 682f85e commit 3394114
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 3394114

Please sign in to comment.