Edited debug output in eventloop
This commit is contained in:
parent
96eb77ce7e
commit
17474fbb87
1 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,8 @@ Timeout *BusDispatcher::add_timeout(Timeout::Internal *ti)
|
||||||
bt->expired = new Callback<BusDispatcher, void, DefaultTimeout &>(this, &BusDispatcher::timeout_expired);
|
bt->expired = new Callback<BusDispatcher, void, DefaultTimeout &>(this, &BusDispatcher::timeout_expired);
|
||||||
bt->data(bt);
|
bt->data(bt);
|
||||||
|
|
||||||
debug_log("added timeout %p (%s)", bt, ((Timeout *)bt)->enabled() ? "on":"off");
|
debug_log("added timeout %p (%s) interval=%d",
|
||||||
|
bt, ((Timeout *)bt)->enabled() ? "on":"off", ((Timeout *)bt)->interval());
|
||||||
|
|
||||||
return bt;
|
return bt;
|
||||||
}
|
}
|
||||||
|
@ -117,8 +118,7 @@ Watch *BusDispatcher::add_watch(Watch::Internal *wi)
|
||||||
bw->data(bw);
|
bw->data(bw);
|
||||||
|
|
||||||
debug_log("added watch %p (%s) fd=%d flags=%d",
|
debug_log("added watch %p (%s) fd=%d flags=%d",
|
||||||
bw, ((Watch *)bw)->enabled() ? "on":"off", ((Watch *)bw)->descriptor(), ((Watch *)bw)->flags()
|
bw, ((Watch *)bw)->enabled() ? "on":"off", ((Watch *)bw)->descriptor(), ((Watch *)bw)->flags());
|
||||||
);
|
|
||||||
|
|
||||||
return bw;
|
return bw;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue