From: Andre Noll Date: Tue, 1 Apr 2008 19:59:24 +0000 (+0200) Subject: unregister_task(): Print what caused the task to shutdown. X-Git-Tag: v0.3.2~35 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=8f79f577f809506a12799cb97dba1f111c014df5;ds=sidebyside unregister_task(): Print what caused the task to shutdown. --- 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)