Skip to content

Commit 0f92d9d

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 9ee8559 commit 0f92d9d

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

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_cfg.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
@@ -259,7 +259,6 @@ static const char *pmrmscu = "PMRMSCU=0xe18 register offset";
259259

260260
struct nvme_config nvme_cfg = {
261261
.output_format = "normal",
262-
.output_format_ver = 1,
263262
.timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
264263
};
265264

nvme.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ struct nvme_config {
5858
__u32 timeout;
5959
bool dry_run;
6060
bool no_retries;
61-
unsigned int output_format_ver;
6261
};
6362

6463
/*
@@ -74,8 +73,6 @@ struct nvme_config {
7473
OPT_FLAG("dry-run", 0, &nvme_cfg.dry_run, dry_run), \
7574
OPT_FLAG("no-retries", 0, &nvme_cfg.no_retries, \
7675
"disable retry logic on errors\n"), \
77-
OPT_UINT("output-format-version", 0, &nvme_cfg.output_format_ver, \
78-
"output format version: 1|2"), \
7976
OPT_END() \
8077
}
8178

0 commit comments

Comments
 (0)