Skip to content

Commit

Permalink
Fixed print to be in correct scope - inside if clause
Browse files Browse the repository at this point in the history
Signed-off-by: Eran Jakoby <[email protected]>
  • Loading branch information
eranja authored and Simon Raviv committed Jun 4, 2018
1 parent 58aaa1b commit 362de1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -1885,9 +1885,10 @@ struct ibv_qp* ctx_qp_create(struct pingpong_context *ctx,
} else {
qp = ibv_create_qp(ctx->pd,&attr);
}
if (errno == ENOMEM)
if (errno == ENOMEM) {
fprintf(stderr, "Requested SQ size might be too big. Try reducing TX depth and/or inline size.\n");
fprintf(stderr, "Current TX depth is %d and inline size is %d .\n", user_param->tx_depth, user_param->inline_size);
}

return qp;
}
Expand Down

0 comments on commit 362de1a

Please sign in to comment.