Archived
string pretty-print improved
string got plain old C output format to avoid confusion e.g. "true" string with CBOR true value Signed-off-by: phirsov <41143811+phirsov@users.noreply.github.com>
This commit is contained in:
@@ -87,7 +87,7 @@ static CborError dumprecursive(CborValue *it, int nestingLevel)
|
||||
err = cbor_value_dup_text_string(it, &buf, &n, it);
|
||||
if (err)
|
||||
return err; // parse error
|
||||
puts(buf);
|
||||
printf("\"%s\"\n", buf);
|
||||
free(buf);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user