Skip to content

Commit 6c7a82f

Browse files
committed
nvme: delete output format version command option
This will change the JSON output to print verbose mode only. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent f756866 commit 6c7a82f

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

nvme-print-json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void json_id_iocs_iocsc(struct json_object *obj_iocsc, __u64 iocsc)
202202

203203
static bool verbose_mode(void)
204204
{
205-
return json_print_ops.flags & VERBOSE || nvme_args.output_format_ver == 2;
205+
return true;
206206
}
207207

208208
static void json_id_iocs(struct nvme_id_iocs *iocs)

nvme.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ static const char *ish = "Ignore Shutdown (for NVMe-MI command)";
254254

255255
struct nvme_args nvme_args = {
256256
.output_format = "normal",
257-
.output_format_ver = 1,
258257
.timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
259258
};
260259

nvme.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ struct nvme_args {
5959
bool dry_run;
6060
bool no_retries;
6161
bool no_ioctl_probing;
62-
unsigned int output_format_ver;
6362
};
6463

6564
#ifdef CONFIG_JSONC
@@ -87,8 +86,6 @@ struct nvme_args {
8786
"disable retry logic on errors"), \
8887
OPT_FLAG("no-ioctl-probing", 0, &nvme_args.no_ioctl_probing, \
8988
"disable 64-bit IOCTL support probing"), \
90-
OPT_UINT("output-format-version", 0, &nvme_args.output_format_ver, \
91-
"output format version: 1|2"), \
9289
OPT_END() \
9390
}
9491

0 commit comments

Comments
 (0)