Skip to content

Commit 5746db3

Browse files
ikegami-tigaw
authored andcommitted
nvme-print-binary: add effects-log command output missed
The csi data added before effects log page output. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent cb977c1 commit 5746db3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

nvme-print-binary.c

+11-1
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,16 @@ static void binary_discovery_log(struct nvmf_discovery_log *log, int numrec)
297297
numrec * sizeof(struct nvmf_disc_log_entry));
298298
}
299299

300+
static void binary_effects_log_pages(struct list_head *list)
301+
{
302+
nvme_effects_log_node_t *node = NULL;
303+
304+
list_for_each(list, node, node) {
305+
d_raw((unsigned char *)&node->csi, sizeof(node->csi));
306+
d_raw((unsigned char *)&node->effects, sizeof(node->effects));
307+
}
308+
}
309+
300310
static struct print_ops binary_print_ops = {
301311
/* libnvme types.h print functions */
302312
.ana_log = binary_ana_log,
@@ -306,7 +316,7 @@ static struct print_ops binary_print_ops = {
306316
.ctrl_registers = binary_ctrl_registers,
307317
.directive = binary_directive,
308318
.discovery_log = binary_discovery_log,
309-
.effects_log_list = NULL,
319+
.effects_log_list = binary_effects_log_pages,
310320
.endurance_group_event_agg_log = binary_endurance_group_event_agg_log,
311321
.endurance_group_list = NULL,
312322
.endurance_log = binary_endurance_log,

0 commit comments

Comments
 (0)