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:
Svyatoslav Phirsov
2020-02-09 17:51:07 +03:00
committed by phirsov
parent 722f6496c3
commit 8acb09f5b0
+3 -1
View File
@@ -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)