Archived
bytestring output pretty-print improved
bytestring got escaped hex string literal output format to not to confuse e.g. "\x11" bytestring with 11 integer Signed-off-by: phirsov <41143811+phirsov@users.noreply.github.com>
This commit is contained in:
@@ -28,8 +28,10 @@ static void indent(int nestingLevel)
|
||||
|
||||
static void dumpbytes(const uint8_t *buf, size_t len)
|
||||
{
|
||||
printf("\"");
|
||||
while (len--)
|
||||
printf("%02X ", *buf++);
|
||||
printf("\\x%02X", *buf++);
|
||||
printf("\"");
|
||||
}
|
||||
|
||||
static CborError dumprecursive(CborValue *it, int nestingLevel)
|
||||
|
||||
Reference in New Issue
Block a user