Skip to content

Commit

Permalink
UCP/WORKER: Move string buffer to function scope
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Jan 30, 2021
1 parent e5d83f0 commit 48d5b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ucp/core/ucp_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,7 @@ ucp_worker_get_ep_config(ucp_worker_h worker, const ucp_ep_config_key_t *key,
ucp_ep_config_t *ep_config;
ucp_memtype_thresh_t *max_eager_short;
ucs_status_t status;
char tl_info[256];

/* Search for the given key in the ep_config array */
for (ep_cfg_index = 0; ep_cfg_index < worker->ep_config_count;
Expand Down Expand Up @@ -1872,9 +1873,8 @@ ucp_worker_get_ep_config(ucp_worker_h worker, const ucp_ep_config_key_t *key,
}

if (print_cfg) {
char info[256];
ucs_info("%s", ucp_worker_print_used_tls(key, context, ep_cfg_index,
info, sizeof(info)));
tl_info, sizeof(tl_info)));
}

++worker->ep_config_count;
Expand Down

0 comments on commit 48d5b56

Please sign in to comment.