X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FTask.c;h=3be5b283d7916db1d6b99b47c5e14e450a76968c;hb=22afade657206fa4ac86ebb6ecc8f2352cca3c4f;hp=57497e427b93a4c3f56f7c2e79ed6836531b6aff;hpb=7b8b90403e97320661ea17920a257e0bf530c206;p=ghc-hetmet.git diff --git a/rts/Task.c b/rts/Task.c index 57497e4..3be5b28 100644 --- a/rts/Task.c +++ b/rts/Task.c @@ -74,7 +74,7 @@ stopTaskManager (void) tasksRunning); ACQUIRE_LOCK(&sched_mutex); - for (task = task_free_list; task != NULL; next) { + for (task = task_free_list; task != NULL; task = next) { next = task->next; stgFree(task); } @@ -192,7 +192,7 @@ discardTask (Task *task) { ASSERT_LOCK_HELD(&sched_mutex); if (!task->stopped) { - debugTrace(DEBUG_sched, "discarding task %ld", TASK_ID(task)); + debugTrace(DEBUG_sched, "discarding task %ld", (long)TASK_ID(task)); task->cap = NULL; task->tso = NULL; task->stopped = rtsTrue; @@ -316,7 +316,7 @@ printAllTasks(void) debugBelch("on capability %d, ", task->cap->no); } if (task->tso) { - debugBelch("bound to thread %d", task->tso->id); + debugBelch("bound to thread %lu", (unsigned long)task->tso->id); } else { debugBelch("worker"); }