Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit acf18da

Browse files
committedFeb 7, 2025·
Updating OpCredsBinding C++ module:
- Updating Logging message for allocated buffer being too small to house RCAC data size, this should hopefully not happen.
1 parent 02ef728 commit acf18da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/controller/python/OpCredsBinding.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ void pychip_GetCommissioningRCACData(uint8_t * rcacDataPtr, size_t * rcacSize, s
772772
// Check if the provided buffer is too small
773773
if (bufferSize < rcacData.size())
774774
{
775-
ChipLogError(Controller, "Provided buffer size (%lu) is too small. Needs to be size %lu. Returning zero-sized buffer.",
775+
ChipLogError(Controller, "Allocated buffer size (%lu) is too small. RCAC data was size (%lu). Returning zero-sized buffer.",
776776
static_cast<unsigned long>(bufferSize), static_cast<unsigned long>(rcacData.size()));
777777
*rcacSize = 0;
778778
return;

0 commit comments

Comments
 (0)