Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ static struct program nvme = {
.extensions = &builtin,
};

#ifdef CONFIG_JSONC
const char *output_format = "Output format: normal|json|binary";
#else /* CONFIG_JSONC */
const char *output_format = "Output format: normal|binary";
#endif /* CONFIG_JSONC */
const char *timeout = "timeout value, in milliseconds";
const char *verbose = "Increase output verbosity";

Expand Down Expand Up @@ -480,8 +484,10 @@ int validate_output_format(const char *format, nvme_print_flags_t *flags)

if (!strcmp(format, "normal"))
f = NORMAL;
#ifdef CONFIG_JSONC
else if (!strcmp(format, "json"))
f = JSON;
#endif /* CONFIG_JSONC */
else if (!strcmp(format, "binary"))
f = BINARY;
else
Expand Down
Loading