From 362de1a3e117e34bdc9762012ddf3dadd6897463 Mon Sep 17 00:00:00 2001 From: Eran Jakoby Date: Thu, 31 May 2018 14:23:07 +0300 Subject: [PATCH] Fixed print to be in correct scope - inside if clause Signed-off-by: Eran Jakoby --- src/perftest_resources.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/perftest_resources.c b/src/perftest_resources.c index 114da5cf..bee9b53f 100755 --- a/src/perftest_resources.c +++ b/src/perftest_resources.c @@ -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; }