From 5dd2cb7a864d9b4c95d097db670ce7ee642699d8 Mon Sep 17 00:00:00 2001 From: Utz-Uwe Haus <uhaus@cray.com> Date: Fri, 3 May 2019 11:14:00 -0500 Subject: [PATCH] improve logging --- maestro/conductor.c | 3 ++- maestro/core.c | 2 +- maestro/ofi.c | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/maestro/conductor.c b/maestro/conductor.c index c9066551..0164c8d2 100644 --- a/maestro/conductor.c +++ b/maestro/conductor.c @@ -77,6 +77,7 @@ mstro_conductor_start(int64_t conductor_size) /* run conductor loop */ sleep (2); - return MSTRO_UNIMPL; + WARN("Conductor not doing real work yet\n"); + return MSTRO_OK; } diff --git a/maestro/core.c b/maestro/core.c index 4ab1067a..4421c6c2 100644 --- a/maestro/core.c +++ b/maestro/core.c @@ -107,7 +107,7 @@ mstro_core_finalize(void) ERR("mstro_core_finalize() without matching mstro_core_init() call\n"); } else { struct mstro_core_initdata *d = (struct mstro_core_initdata*)ptr; - DEBUG("finalize %s/%s/%"PRIi64 " in thread %" PRIxPTR, + DEBUG("finalize %s/%s/%"PRIi64 " in thread %" PRIxPTR "\n", d->workflow_name, d->component_name, d->component_index, (intptr_t)pthread_self()); diff --git a/maestro/ofi.c b/maestro/ofi.c index cc40e531..23a95f3b 100644 --- a/maestro/ofi.c +++ b/maestro/ofi.c @@ -1151,14 +1151,15 @@ mstro_ofi_init(void) /* create one entry in our global EP list per entry */ size_t i=0; LL_FOREACH(fi,tmp) { - ERR("index %zu\n", i++); + NOISE("index %zu\n", i); + i++; retstat = mstro_ep_build_from_ofi(&(g_endpoints->eps[g_endpoints->size]), tmp); if(retstat!=MSTRO_OK) { - ERR("Failed to build EP, trying others\n"); + WARN("Failed to build EP %zu, trying others\n", i); } else { - ERR("%zu. possible endpoint interface %s\n", + INFO("%zu. possible endpoint interface %s\n", g_endpoints->size, mstro_endpoint_describe(&g_endpoints->eps[g_endpoints->size])); g_endpoints->eps[g_endpoints->size].next -- GitLab