Skip to content

Commit

Permalink
Make MessageDef byte string logging nicer. (#22707)
Browse files Browse the repository at this point in the history
0-pad the values, so they are constant-width.

Fixes #22706
  • Loading branch information
bzbarsky-apple authored Sep 19, 2022
1 parent 635b943 commit 21b708e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/MessageDef/MessageDefHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ CHIP_ERROR CheckIMPayload(TLV::TLVReader & aReader, int aDepth, const char * aLa
{
for (size_t i = 0; i < len; i++)
{
PRETTY_PRINT_SAMELINE("0x%x, ", value_b[i]);
PRETTY_PRINT_SAMELINE("0x%02x, ", value_b[i]);
}
}

Expand Down

0 comments on commit 21b708e

Please sign in to comment.