Tools: fix JSON misspelling in cbordump

Signed-off-by: Nicolas Iooss <nicolas.iooss@ledger.fr>
This commit is contained in:
Nicolas Iooss
2023-02-11 18:22:52 -08:00
committed by Thiago Macieira
parent cd3cfc3bc9
commit 9c57e53a2f
+2 -2
View File
@@ -47,7 +47,7 @@ void printerror(CborError err, const char *fname)
exit(EXIT_FAILURE);
}
void dumpFile(FILE *in, const char *fname, bool printJosn, int flags)
void dumpFile(FILE *in, const char *fname, bool printJson, int flags)
{
static const size_t chunklen = 16 * 1024;
static size_t bufsize = 0;
@@ -72,7 +72,7 @@ void dumpFile(FILE *in, const char *fname, bool printJosn, int flags)
CborValue value;
CborError err = cbor_parser_init(buffer, buflen, 0, &parser, &value);
if (!err) {
if (printJosn)
if (printJson)
err = cbor_value_to_json_advance(stdout, &value, flags);
else
err = cbor_value_to_pretty_advance_flags(stdout, &value, flags);