File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,11 @@ static struct program nvme = {
185185 .extensions = & builtin ,
186186};
187187
188+ #ifdef CONFIG_JSONC
188189const char * output_format = "Output format: normal|json|binary" ;
190+ #else /* CONFIG_JSONC */
191+ const char * output_format = "Output format: normal|binary" ;
192+ #endif /* CONFIG_JSONC */
189193const char * timeout = "timeout value, in milliseconds" ;
190194const char * verbose = "Increase output verbosity" ;
191195
@@ -480,8 +484,10 @@ int validate_output_format(const char *format, nvme_print_flags_t *flags)
480484
481485 if (!strcmp (format , "normal" ))
482486 f = NORMAL ;
487+ #ifdef CONFIG_JSONC
483488 else if (!strcmp (format , "json "))
484489 f = JSON ;
490+ #endif /* CONFIG_JSONC */
485491 else if (!strcmp (format , "binary "))
486492 f = BINARY ;
487493 else
You can’t perform that action at this time.
0 commit comments