poll-loop: Make wakeup logging more portable and easier to understand.