io_wait.c: logging: convert LOG to LM_*