Fixed a bug.

Fixed a bug where all but the last kernel log message doesn’t get
logged.