From 8f79f577f809506a12799cb97dba1f111c014df5 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 1 Apr 2008 21:59:24 +0200 Subject: [PATCH] unregister_task(): Print what caused the task to shutdown. --- sched.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sched.c b/sched.c index b9d64286..9b0bddc1 100644 --- a/sched.c +++ b/sched.c @@ -36,7 +36,8 @@ void unregister_task(struct task *t) { if (!initialized) return; - PARA_INFO_LOG("unregistering %s (%p)\n", t->status, t); + PARA_INFO_LOG("unregistering %s (%s)\n", t->status, + t->error <0? para_strerror(-t->error) : "shutdown"); if (t->pre_select) list_del(&t->pre_select_node); if (t->post_select) -- 2.39.5