@@ -132,12 +132,12 @@ CHIP_ERROR LogAsProtocolMessage(uint8_t protocolCode, const uint8_t * data, size
132
132
133
133
CHIP_ERROR DecodeStatusResponse (TLV::TLVReader & reader, bool decode)
134
134
{
135
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
135
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
136
136
if (decode)
137
137
{
138
138
app::StatusResponseMessage::Parser parser;
139
139
ReturnErrorOnFailure (parser.Init (reader));
140
- return parser.CheckSchemaValidity ();
140
+ parser.PrettyPrint ();
141
141
}
142
142
#endif
143
143
@@ -146,12 +146,12 @@ CHIP_ERROR DecodeStatusResponse(TLV::TLVReader & reader, bool decode)
146
146
147
147
CHIP_ERROR DecodeReadRequest (TLV::TLVReader & reader, bool decode)
148
148
{
149
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
149
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
150
150
if (decode)
151
151
{
152
152
app::ReadRequestMessage::Parser parser;
153
153
ReturnErrorOnFailure (parser.Init (reader));
154
- return parser.CheckSchemaValidity ();
154
+ return parser.PrettyPrint ();
155
155
}
156
156
#endif
157
157
@@ -160,12 +160,12 @@ CHIP_ERROR DecodeReadRequest(TLV::TLVReader & reader, bool decode)
160
160
161
161
CHIP_ERROR DecodeSubscribeRequest (TLV::TLVReader & reader, bool decode)
162
162
{
163
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
163
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
164
164
if (decode)
165
165
{
166
166
app::SubscribeRequestMessage::Parser parser;
167
167
ReturnErrorOnFailure (parser.Init (reader));
168
- return parser.CheckSchemaValidity ();
168
+ return parser.PrettyPrint ();
169
169
}
170
170
#endif
171
171
@@ -174,12 +174,12 @@ CHIP_ERROR DecodeSubscribeRequest(TLV::TLVReader & reader, bool decode)
174
174
175
175
CHIP_ERROR DecodeSubscribeResponse (TLV::TLVReader & reader, bool decode)
176
176
{
177
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
177
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
178
178
if (decode)
179
179
{
180
180
app::SubscribeResponseMessage::Parser parser;
181
181
ReturnErrorOnFailure (parser.Init (reader));
182
- return parser.CheckSchemaValidity ();
182
+ parser.PrettyPrint ();
183
183
}
184
184
#endif
185
185
@@ -190,12 +190,12 @@ CHIP_ERROR DecodeReportData(TLV::TLVReader & reader, bool decode)
190
190
{
191
191
ReturnErrorOnFailure (MaybeDecodeNestedReadResponse (reader.GetReadPoint (), reader.GetTotalLength ()));
192
192
193
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
193
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
194
194
if (decode)
195
195
{
196
196
app::ReportDataMessage::Parser parser;
197
197
ReturnErrorOnFailure (parser.Init (reader));
198
- return parser.CheckSchemaValidity ();
198
+ parser.PrettyPrint ();
199
199
}
200
200
#endif
201
201
@@ -204,12 +204,12 @@ CHIP_ERROR DecodeReportData(TLV::TLVReader & reader, bool decode)
204
204
205
205
CHIP_ERROR DecodeWriteRequest (TLV::TLVReader & reader, bool decode)
206
206
{
207
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
207
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
208
208
if (decode)
209
209
{
210
210
app::WriteRequestMessage::Parser parser;
211
211
ReturnErrorOnFailure (parser.Init (reader));
212
- return parser.CheckSchemaValidity ();
212
+ return parser.PrettyPrint ();
213
213
}
214
214
#endif
215
215
@@ -218,12 +218,12 @@ CHIP_ERROR DecodeWriteRequest(TLV::TLVReader & reader, bool decode)
218
218
219
219
CHIP_ERROR DecodeWriteResponse (TLV::TLVReader & reader, bool decode)
220
220
{
221
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
221
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
222
222
if (decode)
223
223
{
224
224
app::WriteResponseMessage::Parser parser;
225
225
ReturnErrorOnFailure (parser.Init (reader));
226
- return parser.CheckSchemaValidity ();
226
+ return parser.PrettyPrint ();
227
227
}
228
228
#endif
229
229
@@ -234,12 +234,12 @@ CHIP_ERROR DecodeInvokeCommandRequest(TLV::TLVReader & reader, bool decode)
234
234
{
235
235
ReturnErrorOnFailure (MaybeDecodeNestedCommandRequest (reader.GetReadPoint (), reader.GetTotalLength ()));
236
236
237
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
237
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
238
238
if (decode)
239
239
{
240
240
app::InvokeRequestMessage::Parser parser;
241
241
ReturnErrorOnFailure (parser.Init (reader));
242
- return parser.CheckSchemaValidity ();
242
+ return parser.PrettyPrint ();
243
243
}
244
244
#endif
245
245
@@ -250,12 +250,12 @@ CHIP_ERROR DecodeInvokeCommandResponse(TLV::TLVReader & reader, bool decode)
250
250
{
251
251
ReturnErrorOnFailure (MaybeDecodeNestedCommandResponse (reader.GetReadPoint (), reader.GetTotalLength ()));
252
252
253
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
253
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
254
254
if (decode)
255
255
{
256
256
app::InvokeResponseMessage::Parser parser;
257
257
ReturnErrorOnFailure (parser.Init (reader));
258
- return parser.CheckSchemaValidity ();
258
+ parser.PrettyPrint ();
259
259
}
260
260
#endif
261
261
@@ -264,12 +264,12 @@ CHIP_ERROR DecodeInvokeCommandResponse(TLV::TLVReader & reader, bool decode)
264
264
265
265
CHIP_ERROR DecodeTimedRequest (TLV::TLVReader & reader, bool decode)
266
266
{
267
- #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK
267
+ #if CHIP_CONFIG_IM_PRETTY_PRINT
268
268
if (decode)
269
269
{
270
270
app::TimedRequestMessage::Parser parser;
271
271
ReturnErrorOnFailure (parser.Init (reader));
272
- return parser.CheckSchemaValidity ();
272
+ parser.PrettyPrint ();
273
273
}
274
274
#endif
275
275
0 commit comments