Skip to content

Commit ba8de1a

Browse files
authored
Merge pull request #109 from dariusgrassi/fix-communication-typo
Fix typo in perftest_communication error output
2 parents 1b14b63 + ac87d0e commit ba8de1a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/perftest_communication.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,23 +1285,23 @@ int ctx_hand_shake(struct perftest_comm *comm,
12851285
rem_dest->gid_index = my_dest->gid_index;
12861286
if (comm->rdma_params->servername) {
12871287
if ((*write_func_ptr)(my_dest,comm)) {
1288-
fprintf(stderr," Unable to write to socket/rdam_cm\n");
1288+
fprintf(stderr," Unable to write to socket/rdma_cm\n");
12891289
return 1;
12901290
}
12911291
if ((*read_func_ptr)(rem_dest,comm)) {
1292-
fprintf(stderr," Unable to read from socket/rdam_cm\n");
1292+
fprintf(stderr," Unable to read from socket/rdma_cm\n");
12931293
return 1;
12941294
}
12951295

12961296
/*Server side will wait for the client side to reach the write function.*/
12971297
} else {
12981298

12991299
if ((*read_func_ptr)(rem_dest,comm)) {
1300-
fprintf(stderr," Unable to read to socket/rdam_cm\n");
1300+
fprintf(stderr," Unable to read to socket/rdma_cm\n");
13011301
return 1;
13021302
}
13031303
if ((*write_func_ptr)(my_dest,comm)) {
1304-
fprintf(stderr," Unable to write from socket/rdam_cm\n");
1304+
fprintf(stderr," Unable to write from socket/rdma_cm\n");
13051305
return 1;
13061306
}
13071307
}
@@ -1322,25 +1322,25 @@ int ctx_xchg_data_ethernet( struct perftest_comm *comm,
13221322
{
13231323
if (comm->rdma_params->servername) {
13241324
if (ethernet_write_data(comm, (char *) my_data, size)) {
1325-
fprintf(stderr," Unable to write to socket/rdam_cm\n");
1325+
fprintf(stderr," Unable to write to socket/rdma_cm\n");
13261326
return 1;
13271327
}
13281328

13291329
if (ethernet_read_data(comm, (char *) rem_data, size)) {
1330-
fprintf(stderr," Unable to read from socket/rdam_cm\n");
1330+
fprintf(stderr," Unable to read from socket/rdma_cm\n");
13311331
return 1;
13321332
}
13331333

13341334
/*Server side will wait for the client side to reach the write function.*/
13351335
} else {
13361336

13371337
if (ethernet_read_data(comm, (char *) rem_data, size)) {
1338-
fprintf(stderr," Unable to read to socket/rdam_cm\n");
1338+
fprintf(stderr," Unable to read to socket/rdma_cm\n");
13391339
return 1;
13401340
}
13411341

13421342
if (ethernet_write_data(comm, (char *) my_data, size)) {
1343-
fprintf(stderr," Unable to write from socket/rdam_cm\n");
1343+
fprintf(stderr," Unable to write from socket/rdma_cm\n");
13441344
return 1;
13451345
}
13461346
}
@@ -1356,25 +1356,25 @@ int ctx_xchg_data_rdma( struct perftest_comm *comm,
13561356
{
13571357
if (comm->rdma_params->servername) {
13581358
if (rdma_write_data(my_data,comm,size)) {
1359-
fprintf(stderr," Unable to write to socket/rdam_cm\n");
1359+
fprintf(stderr," Unable to write to socket/rdma_cm\n");
13601360
return 1;
13611361
}
13621362

13631363
if (rdma_read_data(rem_data,comm,size)) {
1364-
fprintf(stderr," Unable to read from socket/rdam_cm\n");
1364+
fprintf(stderr," Unable to read from socket/rdma_cm\n");
13651365
return 1;
13661366
}
13671367

13681368
/*Server side will wait for the client side to reach the write function.*/
13691369
} else {
13701370

13711371
if (rdma_read_data(rem_data,comm,size)) {
1372-
fprintf(stderr," Unable to read to socket/rdam_cm\n");
1372+
fprintf(stderr," Unable to read to socket/rdma_cm\n");
13731373
return 1;
13741374
}
13751375

13761376
if (rdma_write_data(my_data,comm,size)) {
1377-
fprintf(stderr," Unable to write from socket/rdam_cm\n");
1377+
fprintf(stderr," Unable to write from socket/rdma_cm\n");
13781378
return 1;
13791379
}
13801380
}

0 commit comments

Comments
 (0)