MFC r263129:

  Combine similar code from vprintf(9) and log(9).
MFC r263130:

  Fix -o size less than PAGE_SIZE resulting in SIZE_MAX being used.