Fix attribute-table logs to not log strings as %p. (#35941)
Fixes https://github.com/project-chip/connectedhomeip/issues/35928
diff --git a/src/app/util/attribute-table.cpp b/src/app/util/attribute-table.cpp
index 0d68701..40e690b 100644
--- a/src/app/util/attribute-table.cpp
+++ b/src/app/util/attribute-table.cpp
@@ -342,8 +342,8 @@
// if we dont support that attribute
if (metadata == nullptr)
{
- ChipLogProgress(Zcl, "%p ep %x clus " ChipLogFormatMEI " attr " ChipLogFormatMEI " not supported",
- "WRITE ERR: ", path.mEndpointId, ChipLogValueMEI(path.mClusterId), ChipLogValueMEI(path.mAttributeId));
+ ChipLogProgress(Zcl, "WRITE ERR: ep %x clus " ChipLogFormatMEI " attr " ChipLogFormatMEI " not supported", path.mEndpointId,
+ ChipLogValueMEI(path.mClusterId), ChipLogValueMEI(path.mAttributeId));
return status;
}
@@ -352,13 +352,13 @@
{
if (input.dataType != metadata->attributeType)
{
- ChipLogProgress(Zcl, "%p invalid data type", "WRITE ERR: ");
+ ChipLogProgress(Zcl, "WRITE ERR: invalid data type");
return Status::InvalidDataType;
}
if (metadata->IsReadOnly())
{
- ChipLogProgress(Zcl, "%p attr not writable", "WRITE ERR: ");
+ ChipLogProgress(Zcl, "WRITE ERR: attr not writable");
return Status::UnsupportedWrite;
}
}