Reindent log.c.

- This is in preparation for a more serious upgrade to the logger.
- Unfortunately, the diff makes it look like I've replaced the whole
  file.