From 6d5e880f184ad2c06ab8ce47d0e232321443026b Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Mon, 11 Feb 2019 08:27:21 -0800 Subject: [PATCH] Fix compiling with DEBUG set --- pybind/ucp_py_ucp_fxns.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pybind/ucp_py_ucp_fxns.c b/pybind/ucp_py_ucp_fxns.c index faed7eb2b5d..d217a856b93 100644 --- a/pybind/ucp_py_ucp_fxns.c +++ b/pybind/ucp_py_ucp_fxns.c @@ -401,7 +401,7 @@ static int start_listener(ucp_worker_h ucp_worker, ucx_listener_ctx_t *context, status = ucp_listener_create(ucp_worker, ¶ms, listener); if (status != UCS_OK) { - DEBUG_PRINT(stderr, "failed to listen (%s)\n", ucs_status_string(status)); + ERROR_PRINT("failed to listen (%s)\n", ucs_status_string(status)); } return status; @@ -430,7 +430,7 @@ void *ucp_py_get_ep(char *ip, int listener_port) status = ucp_ep_create(ucp_py_ctx_head->ucp_worker, &ep_params, ep_ptr); if (status != UCS_OK) { - DEBUG_PRINT(stderr, "failed to connect to %s (%s)\n", ip, + ERROR_PRINT("failed to connect to %s (%s)\n", ip, ucs_status_string(status)); } internal_ep->ep_ptr = ep_ptr; @@ -488,7 +488,7 @@ int ucp_py_put_ep(void *internal_ep) request_init(close_req); ucp_request_free(close_req); } else if (UCS_PTR_STATUS(close_req) != UCS_OK) { - DEBUG_PRINT(stderr, "failed to close ep %p\n", (void*)*ep_ptr); + ERROR_PRINT("failed to close ep %p\n", (void*)*ep_ptr); } free(ep_ptr); @@ -517,9 +517,6 @@ int ucp_py_init() ucp_get_version(&a, &b, &c); - DEBUG_PRINT("client = %s (%d), ucp version (%d, %d, %d)\n", - client_target_name, strlen(client_target_name), a, b, c); - memset(&ucp_params, 0, sizeof(ucp_params)); status = ucp_config_read(NULL, NULL, &config);