@@ -297,6 +297,16 @@ static void binary_discovery_log(struct nvmf_discovery_log *log, int numrec)
297
297
numrec * sizeof (struct nvmf_disc_log_entry ));
298
298
}
299
299
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
+
300
310
static struct print_ops binary_print_ops = {
301
311
/* libnvme types.h print functions */
302
312
.ana_log = binary_ana_log ,
@@ -306,7 +316,7 @@ static struct print_ops binary_print_ops = {
306
316
.ctrl_registers = binary_ctrl_registers ,
307
317
.directive = binary_directive ,
308
318
.discovery_log = binary_discovery_log ,
309
- .effects_log_list = NULL ,
319
+ .effects_log_list = binary_effects_log_pages ,
310
320
.endurance_group_event_agg_log = binary_endurance_group_event_agg_log ,
311
321
.endurance_group_list = NULL ,
312
322
.endurance_log = binary_endurance_log ,
0 commit comments