Skip to content

Commit e9a6950

Browse files
committed
Bug fix in test
1 parent 26b09f1 commit e9a6950

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/mi-mctp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,9 @@ static int aem_rcv_enable_fn(struct test_peer *peer, void *buf, size_t len, int
945945
list_hdr->aeslver = 0;
946946
struct nvme_mi_aem_supported_item *item =
947947
(struct nvme_mi_aem_supported_item *)(list_hdr+1);
948-
949948
int item_count = 0;
949+
950+
list_hdr->numaes = 0;
950951
//Count how many events we want to act are enabled
951952
for (int i = 0; i < 256; i++) {
952953
if (fn_data->ep_enabled_map.enabled[i]) {
@@ -957,6 +958,7 @@ static int aem_rcv_enable_fn(struct test_peer *peer, void *buf, size_t len, int
957958
item_count++;
958959
}
959960
}
961+
fprintf(stderr, "Sending %d enabled items\n");
960962

961963
list_hdr->aest = list_hdr->aeslhl +
962964
list_hdr->numaes * sizeof(struct nvme_mi_aem_supported_item);

0 commit comments

Comments
 (0)