X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=schedule.cc;h=d6ec03830abc9e395e16dec32945e827f739a52b;hb=d4361e592c3a19d3a4ec24cea410118eac798b79;hp=c9a1ce1ed8be0f9b7176585bb53aaa53f8be8cdf;hpb=cc60d0e08cbe3bb8060bc535884574e347666a92;p=model-checker.git diff --git a/schedule.cc b/schedule.cc index c9a1ce1..d6ec038 100644 --- a/schedule.cc +++ b/schedule.cc @@ -45,12 +45,12 @@ Thread * Scheduler::get_current_thread(void) void Scheduler::print() { if (current) - printf("Current thread: %d\n", current->get_id()); + DEBUG("Current thread: %d\n", current->get_id()); else - printf("No current thread\n"); - printf("Num. threads in ready list: %ld\n", readyList.size()); + DEBUG("No current thread\n"); + DEBUG("Num. threads in ready list: %ld\n", readyList.size()); std::list::iterator it; for (it = readyList.begin(); it != readyList.end(); it++) - printf("In ready list: thread %d\n", (*it)->get_id()); + DEBUG("In ready list: thread %d\n", (*it)->get_id()); }