Skip to content

Commit a49b05f

Browse files
committed
Testing Prints
1 parent 27579d1 commit a49b05f

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/nvme/mi.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,9 +2383,10 @@ int nvme_mi_aem_enable(nvme_mi_ep_t ep,
23832383
ep->aem_ctx->callbacks = *config;
23842384

23852385
rc = aem_disable_enabled(ep);
2386+
fprintf(stderr, "File: %s, Line: %d\n", __FILE__, __LINE__);
23862387
if (rc)
23872388
goto cleanup_ctx;
2388-
2389+
fprintf(stderr, "File: %s, Line: %d\n", __FILE__, __LINE__);
23892390
//Now, let's do a fresh enable of what's asked
23902391
for (int i = 0; i < NUM_ENABLES; i++) {
23912392
if (config->enabled_map.enabled[i]) {
@@ -2394,20 +2395,22 @@ int nvme_mi_aem_enable(nvme_mi_ep_t ep,
23942395
sync_data_count++;
23952396
}
23962397
}
2397-
2398+
fprintf(stderr, "File: %s, Line: %d\n", __FILE__, __LINE__);
23982399
rc = aem_sync(ep, envfa, empfa, encfa, aemd, aerd,
23992400
sync_data, sync_data_count, response, &response_len);
2401+
fprintf(stderr, "File: %s, Line: %d\n", __FILE__, __LINE__);
24002402
if (rc)
24012403
goto cleanup_ctx;
2402-
2404+
fprintf(stderr, "File: %s, Line: %d\n", __FILE__, __LINE__);
24032405
//Parse the response and fire events
24042406
rc = validate_occ_list_update_ctx(response,
24052407
response_len,
24062408
ep->aem_ctx,
24072409
false /*generation # shouldn't matter*/);
2410+
fprintf(stderr, "File: %s, Line: %d\n", __FILE__, __LINE__);
24082411
if (rc)
24092412
goto cleanup_ctx;
2410-
2413+
fprintf(stderr, "File: %s, Line: %d\n", __FILE__, __LINE__);
24112414
if (response->numaeo) {
24122415
//Return value unused here
24132416
config->aem_handler(ep, response->numaeo, userdata);

test/mi-mctp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ static int aem_rcv_enable_fn(struct test_peer *peer, void *buf, size_t len, int
926926
test_peer.tx_buf[0] = NVME_MI_MSGTYPE_NVME;
927927
test_peer.tx_buf[1] = test_peer.rx_buf[1] | (NVME_MI_ROR_RSP << 7);
928928
tx_hdr->status = 0;
929-
929+
fprintf(stderr, "Stage = %d\n");
930930
switch (fn_data->state) {
931931
case AemEnableGetEnabled:
932932
{
@@ -1117,6 +1117,7 @@ static void aem_test_aem_api_helper(nvme_mi_ep_t ep,
11171117
assert(nvme_mi_aem_get_next_event(ep) == NULL);
11181118

11191119
rc = nvme_mi_aem_enable(ep, false, false, false, 1, 2, config, test_peer.tx_data);
1120+
fprintf(stderr, "Rc = %d, with errno %d\n", rc, errno);
11201121
assert(rc == 0);
11211122

11221123
//This should not work outside the handler

0 commit comments

Comments
 (0)