From 956c7b97f20a2c07078296d8cee83a0e7c575786 Mon Sep 17 00:00:00 2001 From: wjr21 <wjr21@sussex.ac.uk> Date: Mon, 11 Dec 2023 14:48:22 +0000 Subject: [PATCH] More information in error message --- src/scheduler.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/scheduler.h b/src/scheduler.h index cecc339cfb..bd1fe20328 100644 --- a/src/scheduler.h +++ b/src/scheduler.h @@ -181,8 +181,9 @@ scheduler_activate_send(struct scheduler *s, struct link *link, l = l->next) ; if (l == NULL) { - error("Missing link to send task. (task_subtype=%s, c->type=%d, c->depth=%d)", - subtaskID_names[subtype], link->t->ci->type, link->t->ci->depth); + error( + "Missing link to send task. (task_subtype=%s, c->type=%d, c->depth=%d)", + subtaskID_names[subtype], link->t->ci->type, link->t->ci->depth); } scheduler_activate(s, l->t); return l; @@ -205,7 +206,8 @@ scheduler_activate_recv(struct scheduler *s, struct link *link, for (l = link; l != NULL && l->t->subtype != subtype; l = l->next) ; if (l == NULL) { - error("Missing link to recv task. (c->type=%d)", link->t->ci->type); + error("Missing link to recv task. (c->type=%d, c->subtype=%d)", + link->t->ci->type, link->t->ci->subtype); } scheduler_activate(s, l->t); return l; @@ -227,7 +229,8 @@ scheduler_activate_void_recv(struct scheduler *s, struct link *link, const int nodeID) { struct link *l = NULL; for (l = link; - l != NULL && !(l->t->cj != NULL && l->t->cj->nodeID == nodeID && l->t->subtype == subtype); + l != NULL && !(l->t->cj != NULL && l->t->cj->nodeID == nodeID && + l->t->subtype == subtype); l = l->next) ; if (l == NULL) { -- GitLab