Skip to content

Commit 3693889

Browse files
ocp: Review comment changes
Added spaces in an imbedded if statement Changed a reserved field to OCP 2.6 name Signed-off-by: jeff-lien-wdc <[email protected]>
1 parent 44a3d74 commit 3693889

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/ocp/ocp-telemetry-decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ int parse_event_fifo(unsigned int fifo_num, unsigned char *pfifo_start,
11551155
description_str);
11561156

11571157
struct json_object *pevent_descriptor_obj =
1158-
((pevent_fifos_object != NULL)?json_create_object():NULL);
1158+
((pevent_fifos_object != NULL) ? json_create_object() : NULL);
11591159

11601160
if (pevent_descriptor_obj != NULL) {
11611161
json_add_formatted_u32_str(pevent_descriptor_obj,

plugins/ocp/ocp-telemetry-decode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ struct __packed nvme_ocp_statistic_snapshot_evt_class_format
11081108
__u8 stat_info; // Byte 6
11091109
__u8 namespace_info; // Byte 7
11101110
__le16 stat_data_size; // Bytes 9:8
1111-
__le16 reserved2; // Bytes 11:10
1111+
__le16 nsid; // Bytes 11:10
11121112
};
11131113

11141114
struct __packed nvme_ocp_statistics_identifier_string_table

0 commit comments

Comments
 (0)