Skip to content

Conversation

@ikegami-t
Copy link
Contributor

…eckin

Only build json print codes with CONFIG_JSONC build option instead.

OPT_FLAG("raw-binary", 'b', &cfg.raw_binary, raw),
#ifdef CONFIG_JSONC
OPT_FLAG("json", 'j', &cfg.json, json),
#endif /* CONFIG_JSONC */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just thinking loud: if we introduce something like

#ifdef CONFIG_JSONC
#define OPT_FLAG_JSON OPT_FLAG("json",         'j', &cfg.json,       "Output In JSON format")
#else
#define OPT_FLAG_JSON 
#endif

on a global level we don't need these ugly ifdefs everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion. Fixed this by the PR #2637. Thank you.

…eckin

Only build json print codes with CONFIG_JSONC build option instead.

Signed-off-by: Tokunori Ikegami <[email protected]>
@igaw igaw force-pushed the dapustor-json-dep branch from a370973 to 740eb69 Compare December 20, 2024 09:10
@igaw igaw merged commit 64e5df3 into linux-nvme:master Dec 20, 2024
16 checks passed
@igaw
Copy link
Collaborator

igaw commented Dec 20, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants