From 4425606f08dbff8c2bfd87e2fecdac06c96a10be Mon Sep 17 00:00:00 2001 From: Utz-Uwe Haus <uhaus@hpe.com> Date: Wed, 17 Aug 2022 16:58:31 +0300 Subject: [PATCH] ensure remote address is printed on fi_av_insert success --- maestro/ofi.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/maestro/ofi.c b/maestro/ofi.c index 1ab77361..ed329dd7 100644 --- a/maestro/ofi.c +++ b/maestro/ofi.c @@ -2314,8 +2314,14 @@ mstro_ofi__try_epd_addr(const struct mstro_endpoint *local_ep, ret); status = MSTRO_FAIL; } - DEBUG("AV of ep %s accepted address\n", - mstro_endpoint_describe(local_ep)); + { + size_t size = EP_DESC_BUF_MAX; + char remote_straddr[EP_DESC_BUF_MAX]; + fi_av_straddr(local_ep->av, remote_addr, remote_straddr, &size); + + DEBUG("AV of ep %s accepted address %s\n", + mstro_endpoint_describe(local_ep), remote_straddr); + } status = MSTRO_OK; BAILOUT: -- GitLab