Skip to content

Commit d3eeb3c

Browse files
ikegami-tigaw
authored andcommitted
nvme-print: fix stdout_endurance_group_event_agg_log() parameter
Correct the parameter type error. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 279dcb6 commit d3eeb3c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

nvme-print-binary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static void binary_persistent_event_log(void *pevent_log_info,
2727
}
2828

2929
static void binary_endurance_group_event_agg_log(
30-
struct nvme_aggregate_predictable_lat_event *endurance_log,
30+
struct nvme_aggregate_endurance_group_event *endurance_log,
3131
__u64 log_entries, __u32 size, const char *devname)
3232
{
3333
d_raw((unsigned char *)endurance_log, size);

nvme-print-json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ static void json_persistent_event_log(void *pevent_log_info, __u8 action,
19171917
}
19181918

19191919
static void json_endurance_group_event_agg_log(
1920-
struct nvme_aggregate_predictable_lat_event *endurance_log,
1920+
struct nvme_aggregate_endurance_group_event *endurance_log,
19211921
__u64 log_entries, __u32 size, const char *devname)
19221922
{
19231923
struct json_object *r = json_create_object();

nvme-print-stdout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ static void stdout_persistent_event_log(void *pevent_log_info, __u8 action, __u3
567567
}
568568

569569
static void stdout_endurance_group_event_agg_log(
570-
struct nvme_aggregate_predictable_lat_event *endurance_log,
570+
struct nvme_aggregate_endurance_group_event *endurance_log,
571571
__u64 log_entries, __u32 size, const char *devname)
572572
{
573573
printf("Endurance Group Event Aggregate Log for device: %s\n", devname);

nvme-print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void nvme_show_persistent_event_log(void *pevent_log_info,
263263
}
264264

265265
void nvme_show_endurance_group_event_agg_log(
266-
struct nvme_aggregate_predictable_lat_event *endurance_log,
266+
struct nvme_aggregate_endurance_group_event *endurance_log,
267267
__u64 log_entries, __u32 size, const char *devname,
268268
nvme_print_flags_t flags)
269269
{

nvme-print.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct print_ops {
3232
void (*directive)(__u8 type, __u8 oper, __u16 spec, __u32 nsid, __u32 result, void *buf, __u32 len);
3333
void (*discovery_log)(struct nvmf_discovery_log *log, int numrec);
3434
void (*effects_log_list)(struct list_head *list);
35-
void (*endurance_group_event_agg_log)(struct nvme_aggregate_predictable_lat_event *endurance_log, __u64 log_entries, __u32 size, const char *devname);
35+
void (*endurance_group_event_agg_log)(struct nvme_aggregate_endurance_group_event *endurance_log, __u64 log_entries, __u32 size, const char *devname);
3636
void (*endurance_group_list)(struct nvme_id_endurance_group_list *endgrp_list);
3737
void (*endurance_log)(struct nvme_endurance_group_log *endurance_group, __u16 group_id, const char *devname);
3838
void (*error_log)(struct nvme_error_log_page *err_log, int entries, const char *devname);
@@ -201,7 +201,7 @@ void nvme_show_persistent_event_log(void *pevent_log_info,
201201
__u8 action, __u32 size, const char *devname,
202202
nvme_print_flags_t flags);
203203
void nvme_show_endurance_group_event_agg_log(
204-
struct nvme_aggregate_predictable_lat_event *endurance_log,
204+
struct nvme_aggregate_endurance_group_event *endurance_log,
205205
__u64 log_entries, __u32 size, const char *devname,
206206
nvme_print_flags_t flags);
207207
void nvme_show_lba_status_log(void *lba_status, __u32 size,

0 commit comments

Comments
 (0)