fix: use fprintf() instead printf() for userland LOGd().
fix: several debug print lines.
tool: support end logpack header block for wlog file.