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 and pull[bot] committed Oct 6, 2023
1 parent 1edd0d9 commit 28ea05b
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 28ea05b

Please sign in to comment.